hmp 4 tahun lalu
induk
melakukan
2a0b52d112
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 3 1
      common/utils/share.js

+ 3 - 1
common/utils/share.js

@@ -1,5 +1,7 @@
 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) => {
 	vm.$u.api.wxInfo.getWxShareData({
 		url