This commit is contained in:
张成
2025-10-09 18:17:41 +08:00
parent 366c18bcea
commit ba61c9e45d
63 changed files with 1133 additions and 295 deletions

View File

@@ -72,7 +72,7 @@ class Http {
this.store.commit('user/setToken', '')
}
if (window.rootVue && window.rootVue.$router) {
window.rootVue.$router.push({ name: 'login' })
window.rootVue.$router.push({ path: '/login' }) // 使用 path 而不是 name
}
return Promise.reject(error)
}