liming пре 3 недеља
родитељ
комит
8c1924103e
2 измењених фајлова са 8 додато и 5 уклоњено
  1. 2 2
      src/views/me/index.vue
  2. 6 3
      src/views/wallet/index.vue

+ 2 - 2
src/views/me/index.vue

@@ -8,10 +8,10 @@
           height="46px"
           fit="cover"
           round
-          src="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"
+          :src="systemStore.avatar"
         />
         <div class="user-info">
-          <div class="user-info-name">{{walletStore.username}}</div>
+          <div class="user-info-name">{{systemStore.nickname}}</div>
           <div class="user-info-key-body">
             <span>{{ formatAddress(walletStore.account) }}</span>
             <svg-icon style="width: 24px; height: 24px;" name="copy" />

+ 6 - 3
src/views/wallet/index.vue

@@ -7,11 +7,11 @@
             width="28px"
             height="28px"
             round
-            src="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"
+            :src="systemStore.avatar"
           />
           <div class="user-info">
             <div class="user-info-name" @click="showWallet = true">
-              <div>{{walletStore.username}}</div>
+              <div>{{ systemStore.nickname }}</div>
               <svg-icon style="width: 16px; height: 16px;margin-left: 3px;" name="down" />
             </div>
             <div class="user-info-key-body">
@@ -22,7 +22,7 @@
         </div>
         <div class="network">
           <van-image width="20px" height="20px" round :src="walletStore.accountIcon"/>
-          <div class="network-name">{{walletStore.accountName}}</div>
+          <div class="network-name">{{systemStore.nickname}}</div>
         </div>
       </div>
       <div class="amount">
@@ -187,9 +187,12 @@
   import { useRouter } from 'vue-router'
   import { getNetwork } from '@/api/path/login.api'
   import { useWalletStore } from "@/stores/modules/walletStore";
+  import { useSystemStore } from "@/stores/modules/systemStore";
+  
   import axios from 'axios'
   const router = useRouter();
   const walletStore = useWalletStore();
+  const systemStore = useSystemStore();
 
   const isShow = ref(true);
   const showWallet = ref(false);