This commit is contained in:
张成
2025-10-08 16:48:44 +08:00
parent eae1156548
commit 54d4c19cb1
4 changed files with 41 additions and 15 deletions

View File

@@ -73,10 +73,6 @@ export default {
let token = res.data.token
let name = res.data.user.name.trim()
if (res.data.shop) {
let shopId = res.data.shop.id
commit('shop/setShopId', shopId, { root: true })
}
commit('setUserName', name)
commit('setToken', token)
@@ -93,9 +89,6 @@ export default {
async handleLogOut({ state, commit }, vue) {
commit('setToken', '')
commit('setAuthorityMenus', '[]')
if (state.shop) {
commit('shop/setShopId', '', { root: true })
}
window.location.reload()
}
}