修改子系统跳转

UI_2022-02-10
e 4 years ago
parent e73dcb55e0
commit ce88687a10
  1. 6
      src/pages/station/list/index.vue

@ -23,7 +23,7 @@ export default {
name: 'backstage', name: 'backstage',
data() { data() {
return { return {
host: Setting.host, host: Setting.apiBaseURL,
isHh: Setting.isHh, isHh: Setting.isHh,
isBeta: Setting.isBeta, isBeta: Setting.isBeta,
keyword: '', keyword: '',
@ -147,17 +147,19 @@ export default {
}, },
mounted() { mounted() {
util.getToken() util.getToken()
console.log(this.host,'host');
}, },
methods: { methods: {
goSubSystem(item){ goSubSystem(item){
let host = this.host let host = this.host
console.log(host,'kanxia');
let href = '' let href = ''
let roleId = this.roleId == 4 ? 0 : 1 let roleId = this.roleId == 4 ? 0 : 1
let userName = window.btoa(encodeURIComponent(this.userName)) let userName = window.btoa(encodeURIComponent(this.userName))
let type = item.id let type = item.id
if(type == 1){ if(type == 1){
href = `${host}pyTrials/#/` href = `${host}pyTrials/#/`
if(process.env.NODE_ENV === 'development') href = 'http://192.168.31.154:8080/' // if(process.env.NODE_ENV === 'development') href = 'http://120.78.198.231/'
}else if(type == 4){ }else if(type == 4){
href = `${host}pyFinance/#/` href = `${host}pyFinance/#/`
}else if(type == 5){ }else if(type == 5){

Loading…
Cancel
Save