修复刷新异常

This commit is contained in:
aixianling
2022-05-10 11:27:19 +08:00
parent 1eb9c532f3
commit 93d0e0aafe
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ export default {
let {name, label} = file.default,
addApp = {
name: [path.replace(/[.\/]+(project)?[\/]([a-z]+).+/, '$2'), name].join("_"), label: label || name,
path: path.replace(/[.\/]+([a-zA-Z].+\/App[A-Z]\w+)\.vue$/, '/$1'),
path: path.replace(/[.\/]+([a-zA-Z].+\/App[A-Z]\w+)\.vue$/, '/v/$1'),
component: appEntry,
module: file.default
}

View File

@@ -7,7 +7,7 @@ Vue.use(VueRouter)
export default new VueRouter({
mode: 'history',
hashbang: false,
routes: [{path: "/", name: "产品库",component:import('../App')}],
routes: [{path: "/", redirect: "/v", name: "产品库", component: import('../App')}],
scrollBehavior(to) {
if (to.hash) {
return {