|
@@ -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 })
|
|
|
}
|
|
|
};
|
|
|
|