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

targetType类型判断错误

linwei 1 жил өмнө
parent
commit
ffdbf6894e

+ 2 - 2
src/components/index/custom-carousel.vue

@@ -84,9 +84,9 @@ function openDetail (e){
     }
 
     //1=文章,2=外链,空为无跳转
-    if (e?.targetType == '1') {
+    if (e?.targetType == '2') {
         window.open(e?.url, "_blank");
-    }else if (e?.targetType == '2') {
+    }else if (e?.targetType == '1') {
         //富文本
         router.push('/CompanyNews?openType=1&id='+e?.articleId + '&bodyType=1&title='+e?.title)
     }