【修改】修改sso地址
This commit is contained in:
+5
-1
@@ -5,7 +5,11 @@ import login from '../api/modules/login'
|
|||||||
import { BASE_URL } from '../utils/http'
|
import { BASE_URL } from '../utils/http'
|
||||||
|
|
||||||
Vue.use(VueRouter)
|
Vue.use(VueRouter)
|
||||||
|
const originalPush = VueRouter.prototype.push
|
||||||
|
VueRouter.prototype.push = function push(location, onResolve, onReject) {
|
||||||
|
if (onResolve || onReject) return originalPush.call(this, location, onResolve, onReject)
|
||||||
|
return originalPush.call(this, location).catch(err => err)
|
||||||
|
}
|
||||||
let routes = []
|
let routes = []
|
||||||
|
|
||||||
const requireComponents = require.context('./modules', false, /\.js/)
|
const requireComponents = require.context('./modules', false, /\.js/)
|
||||||
|
|||||||
@@ -127,6 +127,7 @@ export default {
|
|||||||
this.$store.commit('activeTab', null)
|
this.$store.commit('activeTab', null)
|
||||||
this.$store.commit('savePathUrl', null)
|
this.$store.commit('savePathUrl', null)
|
||||||
this.$store.commit('removeDicts', null)
|
this.$store.commit('removeDicts', null)
|
||||||
|
localStorage.removeItem('cookie')
|
||||||
// var sevice = "http://"+window.location.host+"/";
|
// var sevice = "http://"+window.location.host+"/";
|
||||||
// var serviceUrl = encodeURIComponent(sevice);
|
// var serviceUrl = encodeURIComponent(sevice);
|
||||||
// 正式
|
// 正式
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ export default {
|
|||||||
this.$store.commit('activeTab', null)
|
this.$store.commit('activeTab', null)
|
||||||
this.$store.commit('savePathUrl', null)
|
this.$store.commit('savePathUrl', null)
|
||||||
this.$store.commit('removeDicts', null)
|
this.$store.commit('removeDicts', null)
|
||||||
|
localStorage.removeItem('cookie')
|
||||||
// var sevice = "http://"+window.location.host+"/";
|
// var sevice = "http://"+window.location.host+"/";
|
||||||
// var serviceUrl = encodeURIComponent(sevice);
|
// var serviceUrl = encodeURIComponent(sevice);
|
||||||
// 正式
|
// 正式
|
||||||
@@ -59,6 +60,8 @@ export default {
|
|||||||
})
|
})
|
||||||
return
|
return
|
||||||
}else{
|
}else{
|
||||||
|
localStorage.setItem('cookie',res.data.sessionId)
|
||||||
|
this.$cookies.get('JSESSIONID')
|
||||||
let routeList=menu.map(item=> item.href)
|
let routeList=menu.map(item=> item.href)
|
||||||
let params
|
let params
|
||||||
if(routeList.indexOf('/report/list')>-1){
|
if(routeList.indexOf('/report/list')>-1){
|
||||||
|
|||||||
Reference in New Issue
Block a user