浏览代码

分享页url需要编码,否者参数可能出现问题

lifanagju_citu 5 月之前
父节点
当前提交
307a38784d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pages/addWebView/index.vue

+ 1 - 1
pages/addWebView/index.vue

@@ -19,7 +19,7 @@ onLoad((options) => {
   onShareAppMessage(() => {
     return {
       title: options?.title || '门墩儿 专注顶尖招聘',
-      path: '/pages/addWebView/index?url=' + url.value
+      path: '/pages/addWebView/index?url=' + encodeURIComponent(url.value)
     }
   })
 })