Parcourir la source

微信环境下参数接收1

wangtao il y a 3 jours
Parent
commit
e119efb9dc
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      src/plugins/common.plugins.js

+ 3 - 2
src/plugins/common.plugins.js

@@ -335,9 +335,10 @@ export default {
           window.open(`${item.path}=${encodeURIComponent(jm)}?form=${form}`,"_blank")
         }
         if(type == "2"){
-          alert("跳转页面")
+          // alert("跳转页面")
           // window.open(`${path}=${encodeURIComponent(jm)}?form=${form}&toPage=${to}`,"_blank")
-          window.open(form)
+          // window.open(form)
+          location.href = `${path}=${encodeURIComponent(jm)}?form=${form}?toPage=${to}`
         }
       //#endif
       //#ifdef APP-PLUS || MP-WEIXIN