|
@@ -1,5 +1,7 @@
|
|
|
import wx from 'weixin-js-sdk'
|
|
import wx from 'weixin-js-sdk'
|
|
|
-const url = (window.location.href.split('index.html')[0])+'index.html'
|
|
|
|
|
|
|
+// const url = (window.location.href.split('index.html')[0])+'index.html'
|
|
|
|
|
+let url = window.location.href.split('#')[0]
|
|
|
|
|
+url = url.indexOf('?') > -1 ? encodeURIComponent(url) : url
|
|
|
export const shareConfig = (shareData, vm) => {
|
|
export const shareConfig = (shareData, vm) => {
|
|
|
vm.$u.api.wxInfo.getWxShareData({
|
|
vm.$u.api.wxInfo.getWxShareData({
|
|
|
url
|
|
url
|