luoyali пре 1 година
родитељ
комит
24f14af561
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      src/api/system/menu.ts
  2. 1 1
      src/router/index.ts

+ 1 - 1
src/api/system/menu.ts

@@ -25,7 +25,7 @@ export function getMenuList(): AxiosPromise {
 	}).then((res: any) => {
 		// console.error(JSON.stringify(res), 'res...')
 		// res['menu'] = [res.menu[0]/*, res.menu[1]*/]
-		res['menu'].unshift(...localDemoRoutes)
+		// res['menu'].unshift(...localDemoRoutes) // 注释当前test环境的菜单
 		return res
 		// return Promise.resolve({
 		// 	// 路由菜单

+ 1 - 1
src/router/index.ts

@@ -321,7 +321,7 @@ export const constantRoutes: AppRouteRecordRaw[] = [
 		name: 'dashboard',
 		meta: { title: 'dashboard', icon: 'icon-homepage', affix: true, parentName: 'mainLayout' }
 	},
-	...localDemoRoutes,
+	// ...localDemoRoutes,
 	// 用户
 	{
 		path: '/profile',