소스 검색

分享页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)
     }
   })
 })