Browse Source

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

lifanagju_citu 5 months ago
parent
commit
307a38784d
1 changed files with 1 additions and 1 deletions
  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)
     }
   })
 })