【修改】修改流程传参方式
This commit is contained in:
@@ -46,6 +46,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import { BASE_URL } from '../utils/http'
|
import { BASE_URL } from '../utils/http'
|
||||||
|
import store from "../store";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Header',
|
name: 'Header',
|
||||||
@@ -79,6 +80,7 @@ export default {
|
|||||||
this.$store.commit('savePathUrl', null)
|
this.$store.commit('savePathUrl', null)
|
||||||
this.$store.commit('saveMenuName', null)
|
this.$store.commit('saveMenuName', null)
|
||||||
this.$store.commit('saveMenuData', null)
|
this.$store.commit('saveMenuData', null)
|
||||||
|
this.store.commit('setHandleProcess', null)
|
||||||
// var sevice = "http://"+window.location.host+"/";
|
// var sevice = "http://"+window.location.host+"/";
|
||||||
// var serviceUrl = encodeURIComponent(sevice);
|
// var serviceUrl = encodeURIComponent(sevice);
|
||||||
// 正式
|
// 正式
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ instance.interceptors.response.use(function (response) {
|
|||||||
store.commit('savePathUrl', null)
|
store.commit('savePathUrl', null)
|
||||||
store.commit('saveMenuName', null)
|
store.commit('saveMenuName', null)
|
||||||
store.commit('saveMenuData', null)
|
store.commit('saveMenuData', null)
|
||||||
|
store.commit('setHandleProcess', null)
|
||||||
router.push('/login')
|
router.push('/login')
|
||||||
Message.error('登录超时过期')
|
Message.error('登录超时过期')
|
||||||
// window.open(BASE_URL.BASE_CHANGAN + "/logout?service=" + BASE_URL.BASE_LOCAL + "/login?loginType=1", '_self');
|
// window.open(BASE_URL.BASE_CHANGAN + "/logout?service=" + BASE_URL.BASE_LOCAL + "/login?loginType=1", '_self');
|
||||||
@@ -107,6 +108,7 @@ instance.interceptors.response.use(function (response) {
|
|||||||
store.commit('savePathUrl', null)
|
store.commit('savePathUrl', null)
|
||||||
store.commit('saveMenuName', null)
|
store.commit('saveMenuName', null)
|
||||||
store.commit('saveMenuData', null)
|
store.commit('saveMenuData', null)
|
||||||
|
store.commit('setHandleProcess', null)
|
||||||
router.push('/login')
|
router.push('/login')
|
||||||
Message.error('登录超时过期')
|
Message.error('登录超时过期')
|
||||||
// window.open(BASE_URL.BASE_CHANGAN + "/logout?service=" + BASE_URL.BASE_LOCAL + "/login?loginType=1", '_self');
|
// window.open(BASE_URL.BASE_CHANGAN + "/logout?service=" + BASE_URL.BASE_LOCAL + "/login?loginType=1", '_self');
|
||||||
|
|||||||
Reference in New Issue
Block a user