hangb преди 7 години
родител
ревизия
221263282f
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      pages/logquit/index.vue

+ 3 - 1
pages/logquit/index.vue

@@ -23,7 +23,6 @@
         this.$http.get('/sso/login/logout', {params: this.$route.query})
         this.$http.get('/sso/login/logout', {params: this.$route.query})
           .then(response => {
           .then(response => {
             if (response.data.success) {
             if (response.data.success) {
-              window.location.href = `${response.data.content.returnURL}`
               for (let i = 0; i < response.data.content.logoutUrls.length; i++) {
               for (let i = 0; i < response.data.content.logoutUrls.length; i++) {
                 if (response.data.content.logoutUrls[i]) {
                 if (response.data.content.logoutUrls[i]) {
                   this.$jsonp(`${response.data.content.logoutUrls[i]}`, function (err) {
                   this.$jsonp(`${response.data.content.logoutUrls[i]}`, function (err) {
@@ -31,6 +30,9 @@
                   })
                   })
                 }
                 }
               }
               }
+              setTimeout(function () {
+                window.location.href = `${response.data.content.returnURL}`
+              }, 1000)
             }
             }
           })
           })
       }
       }