Эх сурвалжийг харах

修复图标resize报错问题

guojing_wu 1 жил өмнө
parent
commit
d0342c92b0

+ 2 - 2
src/views/adManage/sp/campaigns/index.vue

@@ -54,8 +54,8 @@ onMounted(async () => {
 })
 })
 
 
 const resizeTabChart = () => {
 const resizeTabChart = () => {
-	adStructChartRef.value.resizeChart()
-	dataTendencyRef.value.resizeChart()
+	if (adStructChartRef.value) adStructChartRef.value.resizeChart()
+	if (dataTendencyRef.value) dataTendencyRef.value.resizeChart()
 }
 }
 const changeTab = () => {
 const changeTab = () => {
 	nextTick(() => {
 	nextTick(() => {