From dd2bdb18a8394d2f2a13534a98bcadb8020e3668 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: 星期三, 23 七月 2025 16:09:33 +0800
Subject: [PATCH] 修改新增

---
 src/store/modules/user.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index 20271e6..1a4d328 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -2,6 +2,7 @@
 import { getToken, setToken, removeToken } from '@/utils/auth'
 import defAva from '@/assets/images/profile.jpg'
 import Cookies from "js-cookie";
+import { defineStore } from 'pinia'
 import {getUserById} from "@/api/onlineEducation/user";
 const useUserStore = defineStore(
   'user',
@@ -11,6 +12,7 @@
       id: '',
       name: '',
       companyId: null,
+      companyName: '',
       avatar: '',
       roles: [],
       permissions: []
@@ -48,6 +50,7 @@
             this.id = user.userId
             this.name = user.userName
             this.companyId = user.companyId
+            this.companyName = user.companyName
             this.avatar = avatar
             Cookies.set('userInfo',JSON.stringify(user))
             resolve(res)

--
Gitblit v1.9.2