li.shaoyi 4 meses atrás
pai
commit
374d3ed91c
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/packages/tss/views/home/index.vue

+ 2 - 2
src/packages/tss/views/home/index.vue

@@ -9,7 +9,7 @@
       </RouterTransition>
     </router-view>
     <FloatingBubble class="home-line-chat" v-model:offset="offset" :icon="Line" @click="openChat"
-      v-if="loginStore.token" />
+      v-if="loginStore.token && userStore.userData.userAccount.memberlinecsaccount" />
     <app-tabbar :data-list="tabList" :data-index="currentTab" @click="onTabClick" />
     <app-updater :ios-update-url="iosUpdateUrl" />
   </div>
@@ -98,7 +98,7 @@ const onTabClick = (index: number) => {
 }
 
 const openChat = () => {
-  const userAccount = userStore.getUserDataInfo('userAccount')
+  const userAccount = userStore.userData.userAccount
   const lineUrl = 'https://line.me/R/oaMessage/@' + userAccount.memberlinecsaccount
   // const lineProtocolUrl = 'line://ti/p/@' + userAccount.memberlinecsaccount