Sfoglia il codice sorgente

营销物料跳转失败问题

xiaohaizhao 1 anno fa
parent
commit
1d7a49da6a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      pages/tabbar/message/details.js

+ 1 - 1
pages/tabbar/message/details.js

@@ -49,7 +49,7 @@ Page({
         //修改跳转页面
         if (item.path) {
             let arr = item.path.split("/");
-            arr[arr.length - 1] = 'detail';
+            arr[arr.length - 1] = ["sys_attachment"].includes(item.objectname) ? 'index' : 'detail';
             item.path = arr.join("/");
         }
         this.setData({