Explorar o código

营销物料跳转失败问题

xiaohaizhao hai 1 ano
pai
achega
1d7a49da6a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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({