公告板
版本库
filestore
活动
搜索
登录
web
/
app-web-examination-home
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
通知列表
wwf
昨天
34f5733bc1f126c572580fa849b9403dfcddd84b
[web/app-web-examination-home.git]
/
src
/
stores
/
session.js
1
2
3
4
5
6
7
8
9
10
11
import { ref } from 'vue'
import { defineStore } from 'pinia'
export const useSessionStore = defineStore('session', () => {
const userInfo = ref({})
function setUserInfo(data) {
userInfo.value = data
}
return { userInfo, setUserInfo }
})