张延森 3 年 前
コミット
a8ceb736f6
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 2
    2
      src/utils/initial.js

+ 2
- 2
src/utils/initial.js ファイルの表示

@@ -33,11 +33,11 @@ function initSDK (url) {
33 33
  * @param {*} opt
34 34
  */
35 35
 export function share (opt) {
36
-  const { origin, pathname, search } = window.location
36
+  const { origin, pathname } = window.location
37 37
   // const defaultLink = origin + pathname
38 38
   const defaultImg = `${origin}${pathname}img/share.jpg`
39 39
 
40
-  const link = origin + pathname + search // window.location.href
40
+  const link = origin + pathname // window.location.href
41 41
   const imgUrl = opt.imgUrl || defaultImg
42 42
 
43 43
   initSDK(link)