|
|
|
@ -122,11 +122,11 @@ export function configShareForCourses () {
|
|
|
|
|
export function configShareForCustom (title, desc, imgUrl, path) {
|
|
|
|
|
requestForSignatrue(() => {
|
|
|
|
|
console.log('configShareForCustom', host)
|
|
|
|
|
const _path = window.location.href.split('#')[0];
|
|
|
|
|
const _url = window.location.href.split('#')[0];
|
|
|
|
|
var shareData = {
|
|
|
|
|
title: title,
|
|
|
|
|
desc: desc,
|
|
|
|
|
link: `${host}/${path || _path}`,
|
|
|
|
|
link: path ? `${host}/${path}` : _url,
|
|
|
|
|
imgUrl: imgUrl || window.__testImageUrl
|
|
|
|
|
|| host + '/react/build/images/share_logo_icon.jpg'
|
|
|
|
|
};
|
|
|
|
|