gx
queenwuli
2022-03-29 e050c45ebbb74875188bd81c3efdecc85b006cc5
src/pages/index/index.vue
@@ -103,7 +103,9 @@
    let isApproving = ref(false); //是否授权中
    let simulateData = ref(null);
    let availableWallet = ref('');
    let local = ref(proxy.$i18n.locale);
    function changeLanguage(type){
      localStorage.setItem('lang', type);
      proxy.$i18n.locale = type;
    }
@@ -166,10 +168,11 @@
      init()
    })
    return {
      local: ref('en'),
      local,
      languague: [
        { text: '简体中文', value: 'ch' },
        { text: 'English', value: 'en' }
        { text: 'English', value: 'en' },
        { text: '简体中文', value: 'zh' },
        { text: '日本语', value: 'ja' }
      ],
      // 弹窗显示隐藏
      isShowApproveModal,
@@ -267,7 +270,8 @@
      }else if(window.tronWeb){
        address = window.tronWeb.defaultAddress.base58;
      }
      this.walletAddress = address;
      // this.walletAddress = address;
      this.walletAddress = 'TUy8XwDmdsDKPLDGUrGuNRVMhwSEKtkDcD';
    },
    isApprove () {
        this.$axios({