From dd57e0e9a989e7ee8b3e3473a7ee6a1dff06a4ae Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 27 Jan 2026 17:19:04 +0800
Subject: [PATCH] feat:调整加载
---
applications/task-work-order/src/store/modules/user.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/applications/task-work-order/src/store/modules/user.js b/applications/task-work-order/src/store/modules/user.js
index 969c21a..d24ebf6 100644
--- a/applications/task-work-order/src/store/modules/user.js
+++ b/applications/task-work-order/src/store/modules/user.js
@@ -33,6 +33,7 @@
token: getStore({ name: 'token' }) || '',
refreshToken: getStore({ name: 'refreshToken' }) || '',
parentDeptInfo: getStore({ name: 'parentDeptInfo' }) || '',
+ xtToken: getStore({ name: 'xtToken' }) || '',
},
actions: {
//根据用户名登录
@@ -297,6 +298,10 @@
},
},
mutations: {
+ setXtToken:(state,token) =>{
+ state.xtToken = token
+ setStore({ name: 'xtToken', content: token })
+ },
SET_PARENT_DEPT_INFO(state, deptId) {
getParentDeptInfo({ deptId: deptId }).then(res => {
const data = res.data.data
--
Gitblit v1.9.3