修复刷新异常
This commit is contained in:
@@ -25,7 +25,7 @@ export default {
|
|||||||
let {name, label} = file.default,
|
let {name, label} = file.default,
|
||||||
addApp = {
|
addApp = {
|
||||||
name: [path.replace(/[.\/]+(project)?[\/]([a-z]+).+/, '$2'), name].join("_"), label: label || name,
|
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,
|
component: appEntry,
|
||||||
module: file.default
|
module: file.default
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ Vue.use(VueRouter)
|
|||||||
export default new VueRouter({
|
export default new VueRouter({
|
||||||
mode: 'history',
|
mode: 'history',
|
||||||
hashbang: false,
|
hashbang: false,
|
||||||
routes: [{path: "/", name: "产品库",component:import('../App')}],
|
routes: [{path: "/", redirect: "/v", name: "产品库", component: import('../App')}],
|
||||||
scrollBehavior(to) {
|
scrollBehavior(to) {
|
||||||
if (to.hash) {
|
if (to.hash) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user