From b14aa047bab361544e430a3232f34ab759716f4d Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期三, 09 八月 2023 13:31:11 +0800
Subject: [PATCH] 修改
---
src/router/route.json | 15 ---------------
src/router/route.ts | 26 +-------------------------
src/views/loginPage/component/accountLogin.vue | 1 -
3 files changed, 1 insertions(+), 41 deletions(-)
diff --git a/src/router/route.json b/src/router/route.json
index 8dd6cdf..8b13789 100644
--- a/src/router/route.json
+++ b/src/router/route.json
@@ -1,16 +1 @@
-{
- "path": "/home",
- "name": "home",
- "component": "() => import('/@/views/home/index.vue')",
- "meta": {
- "title": "首页",
- "isLink": "",
- "isHide": false,
- "isKeepAlive": true,
- "isAffix": true,
- "isIframe": false,
- "roles": ["admin", "common"],
- "icon": "iconfont icon-shouye"
- }
-}
diff --git a/src/router/route.ts b/src/router/route.ts
index 827dd4d..af6515f 100644
--- a/src/router/route.ts
+++ b/src/router/route.ts
@@ -11,21 +11,6 @@
},
children: [
{
- path: '/home',
- name: 'home',
- component: () => import('/@/views/home/index.vue'),
- meta: {
- title: '首页',
- isLink: '',
- isHide: false,
- isKeepAlive: true,
- isAffix: true,
- isIframe: false,
- roles: ['admin', 'common'],
- icon: 'iconfont icon-shouye',
- },
- },
- {
path: '/test',
name: 'test',
component: () => import('/@/views/test/index.vue'),
@@ -85,14 +70,5 @@
meta: {
title: '登录'
}
- },
- {
- path: '/newMenu',
- name: 'newMenu',
- component: () => import('/@/views/newHome/index.vue'),
- meta: {
- title: '首页',
- isKeepAlive: false
- }
- },
+ }
];
diff --git a/src/views/loginPage/component/accountLogin.vue b/src/views/loginPage/component/accountLogin.vue
index 7ba377c..d6c456d 100644
--- a/src/views/loginPage/component/accountLogin.vue
+++ b/src/views/loginPage/component/accountLogin.vue
@@ -231,7 +231,6 @@
let res = await useMenuApi().getMenuAdmin();
if (res.data.code === 100) {
state.menu = JSON.parse(JSON.stringify(res.data.data))
- console.log(state.menu,'menu')
router.push(state.menu[0].path);
} else {
ElMessage({
--
Gitblit v1.9.2