|
@@ -68,6 +68,8 @@
|
|
<script setup>
|
|
<script setup>
|
|
import { useSystemStore } from "@/stores/modules/systemStore"
|
|
import { useSystemStore } from "@/stores/modules/systemStore"
|
|
import { useWalletStore } from "@/stores/modules/walletStore";
|
|
import { useWalletStore } from "@/stores/modules/walletStore";
|
|
|
|
+import { openDapp } from "@/composables/dAppView";
|
|
|
|
+import { cryptoEncode } from "@/utils/crypto";
|
|
import { useCopy } from "@/hooks/use-copy.js";
|
|
import { useCopy } from "@/hooks/use-copy.js";
|
|
useCopy();
|
|
useCopy();
|
|
const systemStore = useSystemStore();
|
|
const systemStore = useSystemStore();
|
|
@@ -76,7 +78,7 @@ const router = useRouter();
|
|
|
|
|
|
const vanListConfig = [
|
|
const vanListConfig = [
|
|
{ title: '元宝兑换', icon:"ingot", url: 'exchange',status:true },
|
|
{ title: '元宝兑换', icon:"ingot", url: 'exchange',status:true },
|
|
- { title: '竞赛', icon:"competition", url: '/',status:true },
|
|
|
|
|
|
+ { title: '竞赛', icon:"competition", url: '',status:true },
|
|
{ title: '节点分红', icon:"red-envelope", url: 'nodeDividend',status:systemStore.Administrator.is_white },
|
|
{ title: '节点分红', icon:"red-envelope", url: 'nodeDividend',status:systemStore.Administrator.is_white },
|
|
// { title: '帮助中心', icon:"help", url: '/' },
|
|
// { title: '帮助中心', icon:"help", url: '/' },
|
|
{ title: $t('router.AboutUs'), icon:"me", url: 'aboutUs',status:true },
|
|
{ title: $t('router.AboutUs'), icon:"me", url: 'aboutUs',status:true },
|
|
@@ -91,6 +93,16 @@ const formatAddress = (address) => {
|
|
return address.slice(0, 8) + '...' + address.slice(-6);
|
|
return address.slice(0, 8) + '...' + address.slice(-6);
|
|
};
|
|
};
|
|
const evGoPath = (path)=>{
|
|
const evGoPath = (path)=>{
|
|
|
|
+ if(path == ''){
|
|
|
|
+ const dapp = cryptoEncode(
|
|
|
|
+ JSON.stringify({
|
|
|
|
+ address: walletStore.account,
|
|
|
|
+ privateKey: walletStore.privateKey,
|
|
|
|
+ })
|
|
|
|
+ );
|
|
|
|
+ openDapp('http://192.168.0.70:8088/#/', { dapp });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
router.push(path)
|
|
router.push(path)
|
|
}
|
|
}
|
|
const goToaPage = (url) => {
|
|
const goToaPage = (url) => {
|