马宇豪
2025-03-07 db905ecd14f63dba9337b4f4715584ef2d7e8c7e
src/utils/request.js
@@ -92,9 +92,8 @@
        MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => {
          isRelogin.show = false;
          store.dispatch('LogOut').then(() => {
            // location.href = '/index';
            let indexUrl = this.$store.state.permission.indexPage
            location.href = indexUrl;
            // let indexUrl = this.$store.state.permission.indexPage
            location.href = '/index';
          })
      }).catch(() => {
        isRelogin.show = false;