From f88d2029c7b2c66fcf0a9dffdc55da75b939c2ea Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Tue, 12 Aug 2025 10:55:54 +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