Browse Source

fix:message callback

wangyuan 2 years ago
parent
commit
14f5a78c05
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ittpc/src/request/axios.js

+ 1 - 1
ittpc/src/request/axios.js

@@ -30,7 +30,7 @@ const service = axios.create({
           confirmButtonText: '重新登录',
           closeOnClickModal: false,
           closeOnPressEscape: false,
-          beforeClose: function (action, instance, done) {
+          callback: function (action) {
             if (action == 'confirm') {
               sessionStorage.clear()
               Router.replace({