config/index.js 区分 dev prod,fixed store.js userpage.js 等
This commit is contained in:
1 parent
ea2267598b
commit
883919244f
8 files changed
+44
-23
No files matched your search
@@ -92,10 +92,11 @@ export const useMainStore = defineStore('main', {
|
||||
return null
|
||||
},
|
||||
logout() {
|
||||
this.user = null
|
||||
this.address = []
|
||||
this.areaList = []
|
||||
this.selectAddress = null
|
||||
this.member = {}
|
||||
this.cart = []
|
||||
this.token = ''
|
||||
cookie.remove('accessToken')
|
||||
cookie.remove('userinfo')
|
||||
navigateTo('/pages/login/login')
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user