yshop意向点餐系统v1.2.2
This commit is contained in:
1 parent
d03982bf66
commit
fc575265c3
4685 files changed
+518513
-182051
No files matched your search
@@ -0,0 +1,26 @@
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
import cookie from '@/utils/cookie'
|
||||
import { getUserInfo } from '@/api/user'
|
||||
|
||||
export const usePage = defineStore('page', {
|
||||
state: () => ({
|
||||
banner: [],
|
||||
}),
|
||||
getters: {
|
||||
// setUserInfo(state) {
|
||||
// // 自动完成! ✨
|
||||
// return state.user = state
|
||||
// },
|
||||
},
|
||||
actions: {
|
||||
setAccessToken(user) {
|
||||
cookie.set('accessToken', user)
|
||||
return getUserInfo()
|
||||
|
||||
},
|
||||
getUserInfo(user) {
|
||||
getUserInfo()
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user