diff --git a/frontend/src/components/header.vue b/frontend/src/components/header.vue index 781522a..3ab5d14 100644 --- a/frontend/src/components/header.vue +++ b/frontend/src/components/header.vue @@ -13,7 +13,7 @@
-
+
diff --git a/frontend/src/views/dashboard.vue b/frontend/src/views/dashboard.vue index 97f2f74..16e2120 100644 --- a/frontend/src/views/dashboard.vue +++ b/frontend/src/views/dashboard.vue @@ -1,185 +1,34 @@ - + diff --git a/frontend/src/views/login.vue b/frontend/src/views/login.vue index 2413d1e..1bfc6a8 100644 --- a/frontend/src/views/login.vue +++ b/frontend/src/views/login.vue @@ -116,7 +116,10 @@ const submitForm = (formEl: FormInstance | undefined) => { if (!data) return; console.log("login data", data, data.userInfo); - + if (![1, 2].includes(data.userInfo?.roleId)) { + ElMessage.error('您所在用户组无权登录当前系统'); + return; + } ElMessage.success('登录成功'); localStorage.setItem('ms_username', data.userInfo?.username); localStorage.setItem('ms_realname', data.userInfo?.realname);