zzzz
2024-04-19 35f3f260f3d3c51ac2256899ade3b9a144b46b28
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)