Procházet zdrojové kódy

targetType类型判断错误

linwei před 1 rokem
rodič
revize
ffdbf6894e
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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)
     }