From 1ea0d85b0fe2e7e4427fd484a9342d964c831b3d Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期三, 06 八月 2025 15:15:00 +0800 Subject: [PATCH] 修改 --- src/store/modules/user.js | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 8461d2e..7fdf5a5 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -4,6 +4,7 @@ import Cookies from "js-cookie"; import {getUserById} from "@/api/hazardousChemicals/user"; import {getConfigById} from "@/api/hazardousChemicals/config"; +import {ElMessage} from "element-plus"; const useUserStore = defineStore( 'user', { @@ -31,6 +32,11 @@ if(info.code === 200){ Cookies.set('userInfo',JSON.stringify(info.data)) } + if(info.data.userType == 3){ + ElMessage.warning('监管部门账号不可登录') + loading.value = false + return + } if(info.data.userType != 0){ const con = await getConfigById(res.data.companyId); if(con.code === 200){ -- Gitblit v1.9.2