Browse Source

测试环境跳转问题

kevin 2 years ago
parent
commit
bf3afe1543
1 changed files with 4 additions and 2 deletions
  1. 4 2
      pages/main/index/index.vue

+ 4 - 2
pages/main/index/index.vue

@@ -20,7 +20,8 @@
       <el-card style="flex: 1;margin-left: 30px" class="box-card">
         <div slot="header" class="clearfix">
           <span>云端统计</span>
-          <el-button onclick="location.href='https://www.proginn.com/rooter/outsourcemanage'"  style="float: right; padding: 3px 0"  type="text">查看云端</el-button>
+          <el-button v-if="env=='dev'" onclick="location.href='https://dev.test.proginn.com/rooter/outsourcemanage'"  style="float: right; padding: 3px 0"  type="text">查看云端</el-button>
+          <el-button v-else onclick="location.href='https://www.proginn.com/rooter/outsourcemanage'"  style="float: right; padding: 3px 0"  type="text">查看云端</el-button>
         </div>
         <div class="item" style="display: flex;flex-direction: row;align-items: center;justify-content: space-between">
           <div style="display:flex;flex-direction: column;justify-content: center;align-items: center">
@@ -44,7 +45,8 @@
       <el-card style="flex: 1;margin-left: 30px" class="box-card">
         <div slot="header" class="clearfix">
           <span>整包统计</span>
-          <el-button onclick="location.href='https://www.proginn.com/rooter/outsourcemanage'"  style="float: right; padding: 3px 0" type="text">查看整包</el-button>
+          <el-button v-if="env=='dev'" onclick="location.href='https://dev.test.proginn.com/rooter/outsourcemanage'"  style="float: right; padding: 3px 0" type="text">查看整包</el-button>
+          <el-button v-else onclick="location.href='https://www.proginn.com/rooter/outsourcemanage'"  style="float: right; padding: 3px 0" type="text">查看整包</el-button>
         </div>
         <div class="item" style="display: flex;flex-direction: row;align-items: center;justify-content: space-between">
           <div style="display:flex;flex-direction: column;justify-content: center;align-items: center">