feat: 将用户存储的 token 从同步改为异步存储

This commit is contained in:
2026-01-13 00:31:31 +07:00
parent c4f61bb8a4
commit 5f6b5383b2

View File

@@ -6,7 +6,7 @@ interface State {
}
export const useUserStore = defineStore("user", () => {
const token = useStorage<string | null>("user-token", null);
const token = useStorageAsync<string | null>("user-token", null);
const state = reactive<State>({
userProfile: null,
});