ソースを参照

测试环境跳转问题

kevin 2 年 前
コミット
bf3afe1543
1 ファイル変更4 行追加2 行削除
  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">
       <el-card style="flex: 1;margin-left: 30px" class="box-card">
         <div slot="header" class="clearfix">
         <div slot="header" class="clearfix">
           <span>云端统计</span>
           <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>
         <div class="item" style="display: flex;flex-direction: row;align-items: center;justify-content: space-between">
         <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">
           <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">
       <el-card style="flex: 1;margin-left: 30px" class="box-card">
         <div slot="header" class="clearfix">
         <div slot="header" class="clearfix">
           <span>整包统计</span>
           <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>
         <div class="item" style="display: flex;flex-direction: row;align-items: center;justify-content: space-between">
         <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">
           <div style="display:flex;flex-direction: column;justify-content: center;align-items: center">