Update token handling and user state management

This commit is contained in:
wangqiao
2025-08-25 22:51:06 +08:00
parent 63fa551041
commit 7291768b03
5 changed files with 41 additions and 3 deletions

View File

@ -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 () => {