|
@@ -284,7 +284,8 @@
|
|
|
import Swiper from 'swiper'
|
|
|
import $ from 'jquery'
|
|
|
import mqtt from 'mqtt/dist/mqtt'
|
|
|
- import {Encrypt, Decrypt} from '@/utils/secret.js'
|
|
|
+ import { getToken,removeToken } from '@/utils/auth'
|
|
|
+ import {Encrypt, Decrypt} from '@/utils/secret'
|
|
|
import subSensorComponent from '@/components/subSensorComponent.vue'
|
|
|
import subUserComponent from '@/components/subUserComponent.vue'
|
|
|
import planAlarm from '@/components/planAlarm/planAlarm.vue'
|
|
@@ -515,8 +516,12 @@
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
- localStorage.removeItem('instituteToken');
|
|
|
- this.$router.push({path: '/'});
|
|
|
+ removeToken();
|
|
|
+ if(localStorage.getItem('entranceJumpType') == 'SCHOOL'){
|
|
|
+ window.location.href = process.env.VUE_APP_OUT_URL;
|
|
|
+ }else if(localStorage.getItem('entranceJumpType') == 'PC'){
|
|
|
+ window.location.href = process.env.VUE_APP_OUT_URL_PC;
|
|
|
+ }
|
|
|
}).catch(() => {
|
|
|
});
|
|
|
},
|