litian
2024-05-30 ed307fc6a68cd6592589a4bafb7717c0fe7f74cd
src/plugin/axios/index.ts
@@ -36,7 +36,7 @@
  (error) => {
    let msg = '请求发生错误';
    if ((error.response && error.response.status == 401) || error.code == "ERR_NETWORK") {
      localStorage.clear()
      localStorage.removeItem("token")
      router.replace({
        path: '/login'
      })