We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee35fae commit e24a3e1Copy full SHA for e24a3e1
front/src/stores/index.ts
@@ -15,7 +15,7 @@ export const useMainStore = defineStore('main', {
15
token: null,
16
links: [],
17
categories: [],
18
- lastModified: 0,
+ lastModified: -1,
19
config: {
20
enableNoAuth: false,
21
enableNoAuthView: false,
@@ -37,6 +37,8 @@ export const useMainStore = defineStore('main', {
37
logout() {
38
this.token = null
39
this.links = []
40
+ this.categories = []
41
+ this.lastModified = -1
42
},
43
// 验证 token 是否有效
44
async validateToken(): Promise<boolean> {
0 commit comments