Update token handling and user state management
This commit is contained in:
@ -72,11 +72,12 @@
|
||||
import useUserStore from '~/store/user'
|
||||
import dayjs from 'dayjs'
|
||||
const userStore = useUserStore()
|
||||
const user = useUserInfo();
|
||||
|
||||
const query = reactive({
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
userId: userStore.userId,
|
||||
userId: user.value.id,
|
||||
title: '',
|
||||
})
|
||||
|
||||
@ -118,6 +119,8 @@
|
||||
const {data: result, refresh: getUserPointPageList } = await useAsyncData('getUserPointPage', async () => {
|
||||
const res = await getUserPointPage(query)
|
||||
return res.data
|
||||
}, {
|
||||
immediate: true, // 立即请求
|
||||
})
|
||||
|
||||
// const getUserPointPageList = async () => {
|
||||
|
||||
Reference in New Issue
Block a user