From 4fe6c5ac4bc2b7fa9c9c71bb52d9df3e8b13bd7c Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期二, 15 七月 2025 10:11:45 +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 2f33a7d..c0b4cc6 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', @@ -10,6 +11,7 @@ token: getToken(), id: '', name: '', + companyId: null, avatar: '', roles: [], permissions: [] @@ -46,6 +48,7 @@ } this.id = user.userId this.name = user.userName + this.companyId = user.companyId this.avatar = avatar Cookies.set('userInfo',JSON.stringify(user)) resolve(res) -- Gitblit v1.9.2