提交 9ee0a561 作者: vben

chore: update deps

上级 8a98225c
......@@ -31,7 +31,7 @@
"path-to-regexp": "^6.2.0",
"qrcode": "^1.4.4",
"vditor": "^3.5.5",
"vite": "^1.0.0-rc.6",
"vite": "^1.0.0-rc.8",
"vue": "^3.0.2",
"vue-i18n": "^9.0.0-beta.6",
"vue-router": "^4.0.0-rc.1",
......@@ -57,8 +57,8 @@
"@types/rollup-plugin-visualizer": "^2.6.0",
"@types/yargs": "^15.0.9",
"@types/zxcvbn": "^4.4.0",
"@typescript-eslint/eslint-plugin": "^4.5.0",
"@typescript-eslint/parser": "^4.5.0",
"@typescript-eslint/eslint-plugin": "^4.6.0",
"@typescript-eslint/parser": "^4.6.0",
"@vue/compiler-sfc": "^3.0.2",
"autoprefixer": "^9.8.6",
"commitizen": "^4.2.2",
......@@ -76,7 +76,7 @@
"husky": "^4.3.0",
"koa-static": "^5.0.0",
"less": "^3.12.2",
"lint-staged": "^10.4.2",
"lint-staged": "^10.5.0",
"portfinder": "^1.0.28",
"postcss-import": "^12.0.1",
"prettier": "^2.1.2",
......@@ -89,7 +89,7 @@
"stylelint-order": "^4.1.0",
"tasksfile": "^5.1.1",
"ts-node": "^9.0.0",
"typescript": "^4.0.3",
"typescript": "^4.0.5",
"vite-plugin-mock": "^1.0.4",
"vite-plugin-purge-icons": "^0.4.4",
"vue-eslint-parser": "^7.1.1",
......
......@@ -23,7 +23,7 @@ export function genRouteModule(moduleList: AppRouteModule[]) {
for (const routeMod of moduleList) {
const routes = routeMod.routes as any;
const layout = routeMod.layout;
const router = createRouter({ routes, history: createWebHashHistory() });
let router = createRouter({ routes, history: createWebHashHistory() });
const flatList = toRaw(router.getRoutes()).filter((item) => item.children.length === 0);
try {
......
......@@ -60,6 +60,12 @@ const vitePlugins: VitePlugin[] = [];
const viteConfig: UserConfig = {
/**
* Entry. Use this to specify a js entry file in use cases where an
* `index.html` does not exist (e.g. serving vite assets from a different host)
* @default 'index.html'
*/
entry: 'public/index.html',
/**
* 端口号
* @default '3000'
*/
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论