Commit a6cc4fec by 施宇

1

parent be7cbaca
......@@ -68,22 +68,22 @@
},
created() {
//无需登录的情况下
let href = window.location.href;
if(href.indexOf('groupmessage') > -1 || href.indexOf('singlemessage') > -1 || href.indexOf('timeline') > -1){
href = href.replace(/\?from=(groupmessage|singlemessage|timeline)(\S*)#/, '#');
// let href = window.location.href;
// if(href.indexOf('groupmessage') > -1 || href.indexOf('singlemessage') > -1 || href.indexOf('timeline') > -1){
// href = href.replace(/\?from=(groupmessage|singlemessage|timeline)(\S*)#/, '#');
}
// }
if (!this.isLogin) {
this.$store.dispatch({
type: "wxShare",
current_url:href
current_url:location.href.split('#')[0]
});
}
else{
if (util.getCookie("Yo4teW_uid")) {
this.$store.dispatch({
type: "wxShare",
current_url:href
current_url:location.href.split('#')[0]
});
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment