Skip to content
  • This project
    • Loading...
  • Sign in

杨炀 / ztx_wx_gzt

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • ztx_wx_gzt
  • store
  • modules
  • user.js
  • 华明祺's avatar
    feat(personal): 实现个人中心页面及绑定/解绑学员功能 · 20912bef ...
    - 新增个人中心页面,包含会员卡展示、用户信息、功能入口
    - 实现绑定学员弹框,支持输入姓名和证件号进行绑定
    - 添加绑定状态判断,已绑定时按钮切换为解绑
    - 实现解绑功能,调用unbindUser接口
    - 新增退出登录按钮
    - 添加bindUser和unbindUser API接口
    华明祺 committed 2026-03-31 18:41:22 +0800
    20912bef
user.js 373 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
import {
	defineStore
} from "pinia";
import {
	ref
} from 'vue'

export const useUserStore = defineStore('user', () => {
	const user = ref(null)
	const perInfo = ref(null)

	const setUser = (value) => {
		user.value = value
	}

	const setPerInfo = (value) => {
		perInfo.value = value
	}

	return {
		user,
		setUser,
		perInfo,
		setPerInfo
	}
})