MrShi
12 小时以前 c2ffaeb12bf3ec2330797cd2801022bae318ee3d
优化
已修改2个文件
16 ■■■■■ 文件已修改
admin/.env.development 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/src/components/common/CommonHeader.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/.env.development
@@ -5,9 +5,9 @@
# VUE_APP_API_URL  = 'http://192.168.1.45:10010'
# VUE_APP_API_URL  = 'http://192.168.0.7/system_gateway'
VUE_APP_API_URL  = 'http://192.168.0.7/system_gateway'
VUE_APP_API_URL  = 'http://localhost:10010'
# VUE_APP_API_URL  = 'http://localhost:10010'
# VUE_APP_API_URL  = 'https://atwl.ahzyssl.com/zhyq_interface'
admin/src/components/common/CommonHeader.vue
@@ -166,19 +166,25 @@
    getHeaderNav (item,index) {
      this.setCurrentIndex(index)
      if(item.linkType === 0){
        console.log('setTopMenuCurrent')
        this.setTopMenuCurrent(item)
      }else{
        if (item.url && item.url === 'goHKAF' && item.params != null) {
          this.getHKAFHeaderNav(item.params)
          this.getHKAFHeaderNav(item.params, item.label)
        } else if (item.url && item.url.indexOf('http') === 0) {
          window.open(item.url, '_blank')
        }
      }
    },
    getHKAFHeaderNav (type) {
    getHKAFHeaderNav (type, label) {
      getAppHeaderNav(type).then(res => {
        if (label === '安防中心') {
          let openWindow = window.open(res, '_blank')
          setTimeout(() => {
            openWindow.close()
          }, 7 * 1000)
        } else {
        window.open(res, '_blank')
        }
      })
    },
    handleTest () {