Commit c0ffa9ea authored by chenqikuai's avatar chenqikuai

fix: 持续请求直播信息

parent 9098e863
...@@ -144,8 +144,12 @@ export default defineComponent({ ...@@ -144,8 +144,12 @@ export default defineComponent({
features: "", features: "",
inst_name: "", inst_name: "",
hotLoanUuid: "", hotLoanUuid: "",
intervalId: NaN,
}; };
}, },
beforeUnmount(){
clearInterval(this.intervalId)
},
mounted() { mounted() {
this.getHotNews(); this.getHotNews();
this.fetchBannerList(); this.fetchBannerList();
...@@ -153,6 +157,7 @@ export default defineComponent({ ...@@ -153,6 +157,7 @@ export default defineComponent({
this.fetchActivityList(); this.fetchActivityList();
this.fetchLoanProductList(); this.fetchLoanProductList();
this.initLiveRoomCard(); this.initLiveRoomCard();
this.intervalId = window.setInterval(this.initLiveRoomCard, 1000)
}, },
methods: { methods: {
handleSeeMoreLive() { handleSeeMoreLive() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment