Quellcode durchsuchen

targetType类型判断错误

linwei vor 1 Jahr
Ursprung
Commit
ffdbf6894e
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/components/index/custom-carousel.vue

+ 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)
     }