修改外链跳转链接、替换个人资产强刷
This commit is contained in:
parent
eaa99ff0f8
commit
74d07939c0
@ -63,8 +63,8 @@ const statusChild = (val) => {
|
||||
// 更新数据
|
||||
const renewMyNft = async() => {
|
||||
let timer = setTimeout(() => {
|
||||
// getMyAssets()
|
||||
location.reload()
|
||||
getMyAssets()
|
||||
// location.reload()
|
||||
clearTimeout(timer);
|
||||
}, 2000);
|
||||
}
|
||||
@ -81,8 +81,22 @@ const getMyAssets = async () => {
|
||||
}
|
||||
if(myADdress) {
|
||||
try {
|
||||
let nftListBox
|
||||
let res = await apiAssetsState(myADdress, data)
|
||||
nftList.value = Array.from(new Set([...res.rows, ...nftList.value].map(JSON.stringify))).map(JSON.parse);
|
||||
// nftList.value = Array.from(new Set([...res.rows, ...nftList.value].map(JSON.stringify))).map(JSON.parse);
|
||||
nftList.value = [...res.rows, ...nftList.value]
|
||||
// console.log(toRaw(nftList.value))
|
||||
// debugger
|
||||
nftListBox = nftList.value.reduce((acc, obj) => {
|
||||
// console.log(acc,obj)
|
||||
const existingObj = acc.find(item => item.token_id == obj.token_id)
|
||||
if(!existingObj) {
|
||||
acc.push(obj)
|
||||
}
|
||||
return acc
|
||||
},[])
|
||||
nftList.value = nftListBox
|
||||
// console.log(nftListBox)
|
||||
marketplaceStore.cursorObj = res.page
|
||||
next_cursor.value = res.page.next_cursor
|
||||
} catch(e) {
|
||||
|
@ -17,7 +17,7 @@
|
||||
<div class="social-icons">
|
||||
<div class="icon twitter">
|
||||
<a
|
||||
href="https://twitter.com/_CounterFire"
|
||||
href="https://x.com/playCounterFire"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
@ -27,7 +27,7 @@
|
||||
|
||||
<div class="icon discord">
|
||||
<a
|
||||
href="https://discord.com/invite/fNSn2NHUvf"
|
||||
href="https://discord.gg/counterfire"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
|
@ -18,8 +18,8 @@
|
||||
<li v-for="(item, index) in nav.submenu" :key="index">
|
||||
<div
|
||||
class="link-content"
|
||||
@click="openThirdPartyLink(item.link)"
|
||||
>
|
||||
<!-- @click="openThirdPartyLink(item.link)" -->
|
||||
<a
|
||||
class="link-name"
|
||||
:href="item.link"
|
||||
@ -106,7 +106,7 @@ const navList = reactive([
|
||||
name: "COMMUNITY",
|
||||
path: "/stake",
|
||||
submenu: [
|
||||
{ label: "Twitter", link: "https://twitter.com/_CounterFire" },
|
||||
{ label: "Twitter", link: "https://x.com/playCounterFire" },
|
||||
{
|
||||
label: "Youtube",
|
||||
link: "https://youtube.com/c/CryptoElitesBattlegrounds",
|
||||
@ -117,7 +117,7 @@ const navList = reactive([
|
||||
},
|
||||
{ label: "Medium", link: "https://medium.com/@CounterFire" },
|
||||
|
||||
{ label: "Discord", link: "https://discord.com/invite/fNSn2NHUvf" },
|
||||
{ label: "Discord", link: "https://discord.gg/counterfire" },
|
||||
],
|
||||
},
|
||||
// {
|
||||
|
Loading…
x
Reference in New Issue
Block a user