公告板
版本库
filestore
活动
搜索
登录
web
/
app-web-examination-home
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
项目初始化+首页+公告详情页面
wwf
4 天以前
f56e474c81bb25845b46cf99c85bd313dbfcd3b5
[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 }
})