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