Browse Source

修改慢接口导致的动画失效

master
buaixuexideshitongxue 2 months ago
parent
commit
bdbc715dc4
  1. 6
      src/views/datav/Global.vue

6
src/views/datav/Global.vue

@ -495,6 +495,9 @@ const getGlobalMapData = async (timeValue = time.value) => {
},
{ gte: range80Percent, label: "高于最大问题80%", color: "#D34343" },
];
clearInterval(globalMapIntervalId);
globalMapIntervalId = setInterval(mapAnimation, 2000);
mapAnimationStop();
};
const getGlobalTrendData = async (year = selectedYear.value) => {
const res = await getGlobalTrend(year);
@ -573,8 +576,6 @@ const mapAnimation = () => {
dataIndex: randomNum,
});
};
// 2
globalMapIntervalId = setInterval(mapAnimation, 2000);
//
const globalTrendAnimation = () => {
@ -653,7 +654,6 @@ const handleClick = (params) => {
const setupEventListeners = () => {
cartProRankAnimtionStop();
ywlxzbAnimationStop();
mapAnimationStop();
trendAnimationStop();
wtlxzbAnimationStop();
};

Loading…
Cancel
Save