dashboard
repositories
filestore
activity
search
login
甘晶君
/
jiaotongdaxue
北京交通大学驾驶舱
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
样式开发
gjj
2025-02-21
efe41f68868a8926dfc1a6851a492805b56786db
[~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;
}