This commit is contained in:
gaoshuaixing
2022-02-21 09:53:49 +08:00
parent f7abfa02db
commit 5327874690
3 changed files with 9 additions and 6 deletions

View File

@@ -1,3 +0,0 @@
NODE_ENV=production
VUE_APP_PREVIEW=true
VUE_APP_API_BASE_URL=http://localhost:7068

View File

@@ -14,10 +14,15 @@ export const constantRouterMap = [
component: AppSider,
children: [
{
path: '/',
name: 'Demo',
path: '/base',
name: 'Base',
component: Menu,
children: [
{
path: '/base/index',
name: 'BaseIndex',
component: () => import('@/views/base/file/Index')
},
{
path: '/base/file/index',
name: 'BaseFileIndex',

View File

@@ -32,7 +32,7 @@ export default {
'menu_1' : {
icon: 'home',
title: '功能',
pageName: 'DemoFileIndex',
pageName: 'BaseIndex',
params: {},
},
'menu_2' : {
@@ -51,6 +51,7 @@ export default {
methods: {
menuHandle (item) {
const linkInfo = this.menu[item.key]
console.log('[home] load page:', linkInfo.pageName);
this.$router.push({ name: linkInfo.pageName, params: linkInfo.params})
},
},