This commit is contained in:
Leo
2026-01-16 18:03:00 +08:00
parent c7bad0e5e5
commit f03e82acb5
2 changed files with 8 additions and 3 deletions

View File

@@ -313,7 +313,8 @@ export default {
try {
const response = await readWPS365AirSheetCells({
userId: this.userId,
worksheetId: this.form.fileId,
fileId: this.form.fileId,
worksheetId: '0', // AirSheet中worksheetId通常是整数0表示第一个工作表
range: 'A1:B5'
})
if (response.code === 200) {
@@ -376,7 +377,8 @@ export default {
// 测试读取
const readResponse = await readWPS365AirSheetCells({
userId: this.userId,
worksheetId: this.form.fileId,
fileId: this.form.fileId,
worksheetId: '0', // AirSheet中worksheetId通常是整数0表示第一个工作表
range: 'A1:B5'
})
if (readResponse.code !== 200) {
@@ -389,7 +391,8 @@ export default {
const testValues = [['测试数据1', '测试数据2']]
const writeResponse = await updateWPS365AirSheetCells({
userId: this.userId,
worksheetId: this.form.fileId,
fileId: this.form.fileId,
worksheetId: '0', // AirSheet中worksheetId通常是整数0表示第一个工作表
range: testRange,
values: testValues
})