@@ -10,7 +10,8 @@ export const useSystemStore = defineStore("useSystemStore", {
stsClientInfo: {},
Administrator: {},
DAPP_CACHE_KEY:[],
- AddressList:[]
+ AddressList:[],
+ DeviceId:''
}),
persist: true,
getters: {
@@ -230,6 +230,7 @@ const handleVisitDapp = (item) => {
JSON.stringify({
address: walletStore.account,
privateKey: walletStore.privateKey,
+ oaid:systemStore.DeviceId
})
);
openDapp(item.url, { dapp });
@@ -200,6 +200,7 @@
import { openDapp } from "@/composables/dAppView";
import { cryptoEncode } from "@/utils/crypto";
import { useCopy } from "@/hooks/use-copy.js";
+ import { Device } from '@capacitor/device';
useCopy();
const router = useRouter();
@@ -356,6 +357,8 @@
onMounted(async ()=>{
initNetwork();
gethotTokens();
+ const deviceId = await Device.getId();
+ systemStore.DeviceId = deviceId.identifier;
</script>
@@ -47,8 +47,9 @@ const qrtext = walletStore.account;
width: 62px;
height: 62px;
border-radius: 12px;
- background-color: gray;
margin-bottom: 10px;
+ background: url('../../../assets/img/icon.png') no-repeat;
+ background-size: 100% 100%;
}
.qrcode{