Commit 588e5abd authored by co_dengxiongwen's avatar co_dengxiongwen

tj

parent 6bba51f2
......@@ -149,7 +149,6 @@ export default {
isRouterAlive: true,
queryDetailVisible: false,
urlPath: window.CONFIG.urlPath,
paramsList: [],
showList: [],
takeoverInfo: ''
}
......@@ -174,8 +173,6 @@ export default {
this.initWebSocket()
this.initWebSocket2()
this.getDateList()
let paramsList = JSON.parse(sessionStorage.getItem('paramsList'))
this.$store.dispatch('d2admin/paramsList/set', paramsList)
},
destroyed: function () {
this.websocketclose()
......@@ -199,7 +196,8 @@ export default {
let webpath = ''
//wsuri.substring(0, wsuri.indexOf(':'))
if (wsuri != null && wsuri.indexOf(':') <= -1) {
webpath = 'ws://59.110.43.122:8091/websocket/1001'
// webpath = 'ws://59.110.43.122:8091/websocket/1001'
webpath = 'ws://10.20.72.31:8091/websocket/1001'
} else {
webpath =
'ws:' +
......@@ -230,7 +228,6 @@ export default {
) {
var paramsInfo = JSON.parse(e.data)
console.log('paramsInfo:', paramsInfo)
sessionStorage.setItem('paramsList', JSON.stringify(paramsInfo))
this.$store.dispatch('d2admin/paramsList/set', paramsInfo)
}
},
......@@ -256,7 +253,8 @@ export default {
let webpath = ''
//wsuri.substring(0, wsuri.indexOf(':'))
if (wsuri != null && wsuri.indexOf(':') <= -1) {
webpath = 'ws://59.110.43.122:8091/websocket/1002'
// webpath = 'ws://59.110.43.122:8091/websocket/1002'
webpath = 'ws://10.20.72.31:8091/websocket/1002'
} else {
webpath =
'ws:' +
......@@ -420,13 +418,8 @@ export default {
params: this.$http.adornParams({})
}).then((data) => {
if (data && data.code === 0) {
this.paramsList = data.bean
sessionStorage.setItem(
'paramsList',
JSON.stringify(this.paramsList)
)
console.log('paramsList:', this.paramsList)
this.$store.dispatch('d2admin/paramsList/set', this.paramsList)
console.log('paramsList:', data.bean)
this.$store.dispatch('d2admin/paramsList/set', data.bean)
}
})
} else {
......
......@@ -137,6 +137,7 @@ export default {
this.captchaPath = this.$http.adornUrl(
`/captcha.jpg?uuid=${this.formLogin.uuid}`
)
this.$parent.getDateList()
},
/**
* @description 接收选择一个用户快速登录的事件
......
......@@ -230,6 +230,7 @@ service.interceptors.response.use(
sessionStorage.removeItem('token')
sessionStorage.removeItem('uuid')
if (this) {
this.$parent.getDateList()
//清空接管提示框
this.$store.dispatch('d2admin/takeover/setTakeover', null)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment