From 35f3f260f3d3c51ac2256899ade3b9a144b46b28 Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Fri, 19 Apr 2024 05:58:04 +0800
Subject: [PATCH] first
---
src/page/quotes.vue | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/src/page/quotes.vue b/src/page/quotes.vue
index d270ece..8b6e047 100644
--- a/src/page/quotes.vue
+++ b/src/page/quotes.vue
@@ -95,6 +95,9 @@
[Tab.name]: Tab,
[Tabs.name]: Tabs,
},
+ mounted() {
+ this.NEW_CION_LIST();
+ },
async created() {
this.keywords = this.$route.query.inputdata;
// console.log(this.inputdata, "this.inputdata");
@@ -106,7 +109,11 @@
await this.fetchQoutes();
},
computed: {
- ...mapGetters({ coinList: "home/coinList", userInfo: "user/userInfo" }),
+ ...mapGetters({
+ coinList: "home/coinList",
+ userInfo: "user/userInfo",
+ newcoinArr: "home/newcoinArr",
+ }),
},
data() {
const arr = [];
@@ -133,7 +140,7 @@
};
},
methods: {
- ...mapActions("home", [SET_COIN_LIST]),
+ ...mapActions("home", [SET_COIN_LIST], "NEW_CION_LIST"),
listSort(val) {
this.sortVal = val;
},
@@ -144,7 +151,8 @@
await this.SET_COIN_LIST();
}
const coins = this.coinList.map((item) => item.symbol);
- const data = await _getHomeList(coins.join(","));
+ const mainArray = coins.filter((item) => !this.newcoinArr.includes(item));
+ const data = await _getHomeList(mainArray.join(","));
console.log(data);
this.tabList[0]["data"] = data.filter((item) =>
this.myList.includes(item.symbol)
--
Gitblit v1.9.3