From 0f5df5f2fbc6e5aa983fb0f9b263f7bebbb7891c Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Mon, 5 Jun 2023 20:01:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/getData2.js | 8 ++ src/pages/shells/index/index.vue | 192 +++++++++++++++++-------------- src/vuex/modules/user.js | 14 ++- src/vuex/types.js | 1 + 4 files changed, 128 insertions(+), 87 deletions(-) diff --git a/src/config/getData2.js b/src/config/getData2.js index 4d08781..a989c48 100644 --- a/src/config/getData2.js +++ b/src/config/getData2.js @@ -126,3 +126,11 @@ export const updatePass = (newPass, oldPass) => post('api/users/updatePass', { newPass: newPass, oldPass: oldPass }) + +// 用户登录获取菜单 +export const sysMenuBuild = () => post('api/sysMenu/build', { +}) + +// 用户退出 +export const authLogout = () => post('auth/logout', { +}) diff --git a/src/pages/shells/index/index.vue b/src/pages/shells/index/index.vue index 64d864c..e7e4392 100644 --- a/src/pages/shells/index/index.vue +++ b/src/pages/shells/index/index.vue @@ -93,7 +93,7 @@