Skip to content

Commit bed92d5

Browse files
committed
refactor: 精简逻辑
1 parent 3ac0946 commit bed92d5

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

  • src/components/BootstrapBlazor.UniverSheet/wwwroot

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
import { addScript, addLink, getTheme } from '../BootstrapBlazor/modules/utility.js'
1+
import { addScript, getTheme } from '../BootstrapBlazor/modules/utility.js'
22
import DataService from './data-service.js'
33

4-
const loadAssets = async lang => {
5-
await addLink('./_content/BootstrapBlazor.UniverSheet/css/univer-sheet.bundle.css');
4+
export async function createUniverSheetAsync(sheet) {
65
await addScript('./_content/BootstrapBlazor.UniverSheet/univer/univer-bundle.js');
7-
}
86

9-
export async function createUniverSheetAsync(sheet) {
107
sheet.lang = sheet.lang ?? 'en-US';
11-
await loadAssets(sheet.lang);
128
const { el } = sheet;
139
const { LocaleType, merge } = UniverCore;
1410
const { createUniver } = UniverPresets;

0 commit comments

Comments
 (0)