xcx hace 4 años
padre
commit
44824670f8
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1
    1
      src/components/common/MainPageContainer/index.vue
  2. 1
    1
      src/util/Api.js

+ 1
- 1
src/components/common/MainPageContainer/index.vue Ver fichero

@@ -25,7 +25,7 @@
25 25
     <!-- tabbar -->
26 26
     <div class="TabBar flex-h" :style="{paddingBottom: `${MainPaddingBottom}px`}" v-if="ShowMainTabBar">
27 27
       <div class="flex-item" v-for="(item, index) in MainTabBar" :key="index">
28
-        <router-link :to="{name: item.router}" :class="{'active': item.id === MainTabBarActiveId}">
28
+        <router-link :to="{name: item.router}" :class="{'active': item.id === MainTabBarActiveId}" :replace="true">
29 29
           <i class="iconfont" :class="item.icon"></i>
30 30
           <span>{{item.name}}</span>
31 31
         </router-link>

+ 1
- 1
src/util/Api.js Ver fichero

@@ -1,5 +1,5 @@
1 1
 
2
-const prefix = process.env.NODE_ENV === 'production' ? '' : '/api'
2
+const prefix = process.env.NODE_ENV === 'production' ? '/api' : '/api'
3 3
 
4 4
 const $api = {
5 5
   CreateAliPayOrder: { // 创建支付宝订单