|
|
|
|
33
|
* @param {*} opt
|
33
|
* @param {*} opt
|
34
|
*/
|
34
|
*/
|
35
|
export function share (opt) {
|
35
|
export function share (opt) {
|
36
|
- const { origin, pathname, search } = window.location
|
|
|
|
|
36
|
+ const { origin, pathname } = window.location
|
37
|
// const defaultLink = origin + pathname
|
37
|
// const defaultLink = origin + pathname
|
38
|
const defaultImg = `${origin}${pathname}img/share.jpg`
|
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
|
const imgUrl = opt.imgUrl || defaultImg
|
41
|
const imgUrl = opt.imgUrl || defaultImg
|
42
|
|
42
|
|
43
|
initSDK(link)
|
43
|
initSDK(link)
|