From 39868da3de6192d19dfd316c8be1c080b2d3ebe7 Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期五, 18 四月 2025 14:35:46 +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