dashboard
repositories
filestore
activity
search
login
甘晶君
/
jiaotongdaxue
北京交通大学驾驶舱
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
模型预览
gjj
2025-02-21
50ee7232f3c98fe24a1f2e31dba9508cfec14887
[~ganjingjun/jiaotongdaxue.git]
/
src
/
utils
/
getUserProfile.js
1
2
3
4
5
6
7
8
9
import store from "../store/index";
export const getUserProfile = () => {
let userProfile = store.getters["common/userProfile"];
if (!userProfile) {
userProfile = JSON.parse(window.localStorage.getItem("userProfile"));
}
return userProfile;
}