ソースを参照

添加患教配置

zhangbiao 3 年 前
コミット
d516f72924
5 ファイル変更5 行追加8 行削除
  1. 1 0
      .env.development
  2. 1 0
      .env.production
  3. 1 0
      .env.testing
  4. 1 8
      src/views/home/index.vue
  5. 1 0
      src/views/home/learn/page-learn.vue

+ 1 - 0
.env.development

@@ -1,2 +1,3 @@
+VUE_APP_ENV = "dev"
 VUE_APP_JTXT_URL = "http://8.141.68.219:8080"
 VUE_APP_LANXIN_APPID = "557824-1114112"

+ 1 - 0
.env.production

@@ -1,2 +1,3 @@
+VUE_APP_ENV = "pro"
 VUE_APP_JTXT_URL = "http://120.77.221.199:7000"
 VUE_APP_LANXIN_APPID = "557824-1114112"

+ 1 - 0
.env.testing

@@ -1,2 +1,3 @@
+VUE_APP_ENV = "test"
 VUE_APP_JTXT_URL = "http://8.141.68.219:8080"
 VUE_APP_LANXIN_APPID = "557824-1114112"

+ 1 - 8
src/views/home/index.vue

@@ -1,13 +1,6 @@
 <template>
   <div class="home-box">
-    <van-nav-bar
-      title="京臻学堂"
-      left-text=""
-      right-text=""
-      bind:click-left=""
-      bind:click-right=""
-    >
-    </van-nav-bar>
+    <van-nav-bar title="京臻学堂" left-text right-text bind:click-left bind:click-right></van-nav-bar>
     <div v-show="activeTabName === 0" class="dropdown-div"></div>
     <transition name="tab" mode="out-in">
       <component :is="currentComponents" class="page" />

+ 1 - 0
src/views/home/learn/page-learn.vue

@@ -31,6 +31,7 @@ export default {
   },
   computed: {},
   created() {
+    console.log("---------" + process.env.VUE_APP_ENV);
     this.getLearnRootList();
   },
   mounted() {},