congjiang vor 4 Tagen
Ursprung
Commit
a757984302
2 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen
  1. 1 2
      src/components/Header/index.vue
  2. 1 1
      src/pages/trade/index.vue

+ 1 - 2
src/components/Header/index.vue

@@ -32,8 +32,7 @@ const props = defineProps({
 const emit = defineEmits(['update:address']);
 const address = ref("");
 const getAddress = async () =>{
-  // const addr = await getWalletAddress();
-  let addr = '0x01Ce8d3Ae9240B029E0868f811dfF77a4F5320f2';
+  const addr = await getWalletAddress();
   if (addr) {
     console.log(addr);
     emit('update:address', addr);

+ 1 - 1
src/pages/trade/index.vue

@@ -306,7 +306,7 @@ const bgClass = computed(() => {
   return 'bg3';
 });
 const handleAddressUpdate = (addr) => {
-  // privateKey.value = window.android.getPrivateKey();//app
+  privateKey.value = window.android.getPrivateKey();//app
   walletAddress.value = addr;
   getSysSetting();
   getGameMatchList();