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/components/trade-head/index.vue | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/components/trade-head/index.vue b/src/components/trade-head/index.vue
index e2e9fab..a089cdf 100644
--- a/src/components/trade-head/index.vue
+++ b/src/components/trade-head/index.vue
@@ -179,6 +179,7 @@
...mapGetters({
coinList: "home/coinList",
theme: "home/theme",
+ newcoinArr: "home/newcoinArr",
}),
},
data() {
@@ -198,6 +199,9 @@
// { name:"ADA/USDT",close:"0.493085",change_ratio:"-4.08"},
//]
};
+ },
+ mounted() {
+ this.NEW_CION_LIST();
},
watch: {
symbol(val) {
@@ -225,7 +229,7 @@
}
},
methods: {
- ...mapMutations("home", ["SET_THEME"]),
+ ...mapMutations("home", ["SET_THEME", "NEW_CION_LIST"]),
onRoute(item) {
if (this.islevel) {
if (this.$route.params.symbol !== item.symbol) {
@@ -258,7 +262,10 @@
},
fetchList() {
// 获取行情
- _getHomeList(this.coins.join(",")).then((list) => {
+ const mainArray = this.coins.filter(
+ (item) => !this.newcoinArr.includes(item)
+ );
+ _getHomeList(mainArray.join(",")).then((list) => {
// console.log(list)
this.list = list;
if (this.timeout) {
--
Gitblit v1.9.3