|
|
@@ -149,14 +149,14 @@ function getDocumentInfo() {
|
|
|
try {
|
|
|
const base = DingdocsScript.base;
|
|
|
|
|
|
- const uuid = base.getDentryUuid?.() || base.getDocUuid?.() || base.getUuid?.() || '';
|
|
|
+ const uuid = (base as any).getDentryUuid?.() || (base as any).getDocUuid?.() || (base as any).getUuid?.() || '';
|
|
|
console.log('文档UUID获取结果:', uuid);
|
|
|
|
|
|
- const sheets = base.getSheets?.() || base.getSheetList?.() || [];
|
|
|
+ const sheets = (base as any).getSheets?.() || (base as any).getSheetList?.() || [];
|
|
|
console.log('表格列表:', sheets);
|
|
|
|
|
|
- const activeSheet = base.getActiveSheet?.() || base.getCurrentSheet?.();
|
|
|
- const currentSheet = activeSheet?.getName?.() || activeSheet?.name || '无';
|
|
|
+ const activeSheet = (base as any).getActiveSheet?.() || (base as any).getCurrentSheet?.();
|
|
|
+ const currentSheet = (activeSheet as any)?.getName?.() || (activeSheet as any)?.name || '无';
|
|
|
console.log('当前表格:', currentSheet);
|
|
|
|
|
|
return {
|