add qq oauth2 support / start landing page

This commit is contained in:
landaiqing
2024-08-19 23:11:22 +08:00
parent 8998259791
commit 498807ca66
28 changed files with 1123 additions and 129 deletions

View File

@@ -1,27 +0,0 @@
import {defineStore} from 'pinia';
import {reactive} from 'vue';
export const useAuthSessionStore = defineStore(
'user',
() => {
const user: any = reactive({
accessToken: '',
uid: '',
refreshToken: '',
expiresAt: 0,
});
return {
user,
};
},
{
// 开启数据持久化
persist: {
key: 'user',
storage: sessionStorage,
paths: ['user'],
}
}
);