diff --git a/src/router/index.js b/src/router/index.js index 2c4d2e4a..ca48feb8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -99,7 +99,13 @@ export const constantRoutes = [ component: () => import('@/views/dish/menu/detail'), name: 'MenuDetail', meta: { title: '菜谱详情', icon: '' } - } + }, + { + path: 'menuEdit', + component: () => import('@/views/dish/menu/edit'), + name: 'menuEdit', + meta: { title: '菜谱编辑', icon: '' } + }, ] } ] @@ -206,7 +212,8 @@ Router.prototype.replace = function push(location) { } export default new Router({ - mode: 'history', // 去掉url中的# + mode: 'hash', // 去掉url中的# scrollBehavior: () => ({ y: 0 }), - routes: constantRoutes + // base:"/glweb/", + routes: constantRoutes, })