Преглед на файлове

feature_20260427_经销商用户多身份切换

zhujindu преди 1 седмица
родител
ревизия
43b1a13796
променени са 2 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 1 1
      src/views/week/changeChain.vue
  2. 5 1
      src/views/week/index.vue

+ 1 - 1
src/views/week/changeChain.vue

@@ -5,7 +5,7 @@
       <div class="module">
         <div
           class="box"
-          v-if="userInfo.userMultipleChains && userInfo.userMultipleChains.length > 0">
+          v-if="userInfo && userInfo.userMultipleChains && userInfo.userMultipleChains.length > 0">
           <van-radio-group v-model="userInfo.chainCode" @change="chainChange">
             <van-radio
               v-for="value in userInfo.userMultipleChains"

+ 5 - 1
src/views/week/index.vue

@@ -68,7 +68,11 @@
               <van-icon name="setting-o" class="zicon" color="#0158ba" />
             </template>
           </van-cell>
-          <van-cell title="切换经销商" is-link to="/changeChain" v-if="userInfo.userMultipleChains">
+          <van-cell
+            title="切换经销商"
+            is-link
+            to="/changeChain"
+            v-if="userInfo && userInfo.userMultipleChains">
             <template #icon>
               <van-icon name="exchange" class="zicon" color="#0158ba" />
             </template>