소스 검색

Signed-off-by: yukangzhe <382985154@qq.com>

yukangzhe 4 년 전
부모
커밋
b395e526d1
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      pages/index/index.js

+ 3 - 0
pages/index/index.js

@@ -88,6 +88,9 @@ Page({
   },
 
   toPage: function (e) {
+    if(typeof e.currentTarget.dataset.url == 'undefined'){
+      return
+    }
     wx.navigateTo({
       url: e.currentTarget.dataset.url,
     })