Browse Source

targetType类型判断错误

linwei 1 year ago
parent
commit
ffdbf6894e
1 changed files with 2 additions and 2 deletions
  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)
     }