lifanagju_citu 1 miesiąc temu
rodzic
commit
8c4dbf2f2e
2 zmienionych plików z 9 dodań i 4 usunięć
  1. 3 2
      pagesA/resumeOnline/index.vue
  2. 6 2
      utils/config.js

+ 3 - 2
pagesA/resumeOnline/index.vue

@@ -11,10 +11,10 @@
         stroke-width="8"
       />
     </view>
-    <!-- <view class="topTip">
+    <view v-if="testEnvBool" class="topTip">
       使用简历附件生成在线简历:
       <text class="resumeAnalysisBtn" @tap="handleToResumeAnalysis">立即生成</text>
-    </view> -->
+    </view>
     <view class="baseInfo borderLine" @tap="handleTo('baseInfoEdit')">
       <view>
         <view class="baseInfo-name">
@@ -248,6 +248,7 @@
 </template>
 
 <script setup>
+import { testEnvBool } from '@/utils/config'
 import { ref } from 'vue'
 import { getAgeByBirthdayTimestamp, timesTampChange } from '@/utils/date'
 import {

+ 6 - 2
utils/config.js

@@ -13,11 +13,15 @@ const config = {
   }
 }
 
-export const envObj = config['produce']
+const setting = 'produce' // 环境选择
+
+export const envObj = config[setting]
 
 export const baseUrl = envObj.baseUrl
 
+export const testEnvBool = Boolean(setting !== 'produce') // true: 测试环境
+
 // 租户id
 export const tenantId = '155'
 
-export const apiPath = '/app-api'
+export const apiPath = '/app-api'