From c76fb1a5ce363057eb00dd1d139135adbf030d3f Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Tue, 18 Mar 2025 16:11:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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, })