Skip to content

Commit 233abad

Browse files
committed
refactor: 重构代码
1 parent 722ec21 commit 233abad

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • src/components/BootstrapBlazor.UniverSheet/wwwroot

src/components/BootstrapBlazor.UniverSheet/wwwroot/univer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const loadAssets = async () => {
1919
await addLink('./_content/BootstrapBlazor.UniverSheet/univer/css/univer-sheet.bundle.css');
2020
}
2121

22-
2322
export async function createUniverSheetAsync(sheet) {
2423
await loadAssets();
2524

@@ -70,7 +69,7 @@ export async function createUniverSheetAsync(sheet) {
7069
...options
7170
});
7271

73-
const { data } = sheet.options.data || {};
72+
const { data } = sheet.options || {};
7473
if (data) {
7574
const option = typeof data === 'string' ? JSON.parse(data) : data;
7675
univerAPI.createWorkbook(option);

0 commit comments

Comments
 (0)