From 7c048f9fa3edaf398afca3f49b3dbdf6449a2f74 Mon Sep 17 00:00:00 2001 From: heshengjie3333 Date: Wed, 22 Jun 2022 10:52:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 +- src/components/page/account/Login.vue | 4 +- src/components/page/account/Register.vue | 2 +- .../page/systemManage/MenuManage.vue | 166 +++++++++--------- 4 files changed, 87 insertions(+), 89 deletions(-) diff --git a/src/App.vue b/src/App.vue index bced65e..5cc29be 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,7 @@ diff --git a/src/components/page/account/Login.vue b/src/components/page/account/Login.vue index f2cc18b..c218d42 100644 --- a/src/components/page/account/Login.vue +++ b/src/components/page/account/Login.vue @@ -87,8 +87,8 @@ export default { captchaId: id.value, }).then((res) => { console.log(res); - if (res.code == 0) { - localStorage.setItem("token", res.data.token); + if (res.data.code == 0) { + localStorage.setItem("token", res.data.data.token); ElMessage.success("登录成功"); router.replace("/dash_board/work_bench"); } else { diff --git a/src/components/page/account/Register.vue b/src/components/page/account/Register.vue index d9da267..b38722d 100644 --- a/src/components/page/account/Register.vue +++ b/src/components/page/account/Register.vue @@ -122,7 +122,7 @@ export default { email: email.value, }) .then((res) => { - if (res.data.code == 200) { + if (res.data.code == 0) { ElMessage.success(res.data.msg); router.replace("/account/login"); } else { diff --git a/src/components/page/systemManage/MenuManage.vue b/src/components/page/systemManage/MenuManage.vue index cdad792..c9d0c4b 100644 --- a/src/components/page/systemManage/MenuManage.vue +++ b/src/components/page/systemManage/MenuManage.vue @@ -69,24 +69,6 @@ - - - @@ -99,21 +81,21 @@
-
+
- 菜单名称 + 商品名称