Browse Source

Merge branch 'http_test' of git.xiaojukeji.com:pu_qa_tool/thoth-frontend into http_test

qinzhipeng_v@didiglobal.com 4 năm trước cách đây
mục cha
commit
2c706a3c17
2 tập tin đã thay đổi với 6 bổ sung3 xóa
  1. 3 1
      src/apiConfig/requestIP.js
  2. 3 2
      src/views/home/index.vue

+ 3 - 1
src/apiConfig/requestIP.js

@@ -4,7 +4,8 @@ export let requestIp = host + '/zuul'
 export let loginUrl = host + '/sso/login?jumpto=' + 'http://zhihui-test.intra.xiaojukeji.com' + location.pathname
 export let logoutUrl = host + '/sso/logout?jumpto=' + 'http://zhihui-test.intra.xiaojukeji.com' + location.pathname
 export let envTag = 'test'
-export let envUrl = 'http://10.190.5.126:8897/#/env'
+export let envUrl = 'http://zhihui-test.intra.xiaojukeji.com/zhihui_env/'
+export let toolsUrl = 'http://zhihui-test.intra.xiaojukeji.com/tools/'
 if (location.host.indexOf('localhost') < 0) {
   host = 'http://' + location.host
   requestIp = host + '/zuul'
@@ -15,6 +16,7 @@ if (location.host.indexOf('localhost') < 0) {
   } else if (host.indexOf('zhihui.xiaojukeji.com') >= 0) {
     envTag = 'online'
     envUrl = 'http://zhihui-env.intra.xiaojukeji.com/#/env'
+    toolsUrl = 'http://zhihui.xiaojukeji.com/tools/'
   }
 }
 

+ 3 - 2
src/views/home/index.vue

@@ -291,7 +291,7 @@ img.img-arrow {
 <script>
 import { mapGetters } from 'vuex'
 import FloatMenu from './floatMenu'
-import { logoutUrl, envUrl } from '@/apiConfig/requestIP.js'
+import { logoutUrl, envUrl, toolsUrl } from '@/apiConfig/requestIP.js'
 import { settingUserGetBiz } from '@/api/projectIndex'
 import { materialGetMaterialList } from '@/api/monthly/index.js'
 
@@ -386,7 +386,8 @@ export default {
           this.$router.push({ name: '统计分析' })
           break
         case '9':
-          this.$router.push({ name: 'Interface' })
+          // this.$router.push({ name: 'Interface' })
+          window.open(toolsUrl, '_self')
           break
         case '10':
           this.$router.push({ name: '测试用例' })