qushaowei
2024-03-14 e055d2d93b516985fbc2df0f6f5a135f3230cccf
src/utils/request.js
@@ -79,7 +79,8 @@
        if (token) {
          store.dispatch('Logout').then(() => {
            setTimeout(() => {
              window.location.reload()
              router.push({ path: '/user/login' });
              // window.location.reload()
            }, 1500)
          })
        }
@@ -169,7 +170,10 @@
            onOk: () => {
              store.dispatch('Logout').then(() => {
                Vue.ls.remove(ACCESS_TOKEN)
                window.location.reload()
                setTimeout(() => {
                  router.push({ path: '/user/login' });
                  // window.location.reload()
                }, 1500)
              })
            }
          })