|
@@ -73,7 +73,7 @@ const useWeChatShare = async (params: shareParams) => {
|
|
if (!isWeChat()) return params.isShowToast && showToast('请在微信浏览器中分享')
|
|
if (!isWeChat()) return params.isShowToast && showToast('请在微信浏览器中分享')
|
|
const { data } = await getShareConfig({
|
|
const { data } = await getShareConfig({
|
|
appId: 'wx91c4152b60ca91a3',
|
|
appId: 'wx91c4152b60ca91a3',
|
|
- url: location.href,
|
|
|
|
|
|
+ url: Number(params.type) > 5 ? import.meta.env.VITE_HTTP_URL : location.href,
|
|
})
|
|
})
|
|
console.log(data)
|
|
console.log(data)
|
|
wx.config({
|
|
wx.config({
|