mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-11-10 07:48:22 +08:00
fix: globEager deprecated (#439)
* fix: globEager deprecated * Update .vscode/settings.json Co-authored-by: 悠静萝莉 <i@mikuhl.cn> --------- Co-authored-by: 悠静萝莉 <i@mikuhl.cn>
This commit is contained in:
parent
ca0abd6ba0
commit
715e882451
11
.vscode/settings.json
vendored
11
.vscode/settings.json
vendored
|
@ -21,5 +21,14 @@
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
||||||
},
|
},
|
||||||
"cSpell.words": ["tdesign", "tvision", "echarts", "nprogress", "commitlint", "stylelint", "pinia", "qrcode"]
|
"cSpell.words": [
|
||||||
|
"tdesign",
|
||||||
|
"tvision",
|
||||||
|
"echarts",
|
||||||
|
"nprogress",
|
||||||
|
"commitlint",
|
||||||
|
"stylelint",
|
||||||
|
"pinia",
|
||||||
|
"qrcode"
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,10 +4,10 @@ import uniq from 'lodash/uniq';
|
||||||
const env = import.meta.env.MODE || 'development';
|
const env = import.meta.env.MODE || 'development';
|
||||||
|
|
||||||
// 导入homepage相关固定路由
|
// 导入homepage相关固定路由
|
||||||
const homepageModules = import.meta.globEager('./modules/**/homepage.ts');
|
const homepageModules = import.meta.glob('./modules/**/homepage.ts', { eager: true });
|
||||||
|
|
||||||
// 导入modules非homepage相关固定路由
|
// 导入modules非homepage相关固定路由
|
||||||
const fixedModules = import.meta.globEager('./modules/**/!(homepage).ts');
|
const fixedModules = import.meta.glob('./modules/**/!(homepage).ts', { eager: true });
|
||||||
|
|
||||||
// 其他固定路由
|
// 其他固定路由
|
||||||
const defaultRouterList: Array<RouteRecordRaw> = [
|
const defaultRouterList: Array<RouteRecordRaw> = [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user