Commit 02c5a272 by 施宇

1

parent 385e7182
...@@ -66,24 +66,29 @@ ...@@ -66,24 +66,29 @@
} }
} }
}, },
beforeCreate(){
console.log(11111111)
let href = window.location.href;
if(href.indexOf('groupmessage') > -1 || href.indexOf('singlemessage') > -1 || href.indexOf('timeline') > -1){
console.log(111)
href = href.replace(/\?from=(groupmessage|singlemessage|timeline)(\S*)#/, '#');
window.location.replace(href);
}
},
created() { 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*)#/, '#');
// }
if (!this.isLogin) { if (!this.isLogin) {
this.$store.dispatch({ this.$store.dispatch({
type: "wxShare", type: "wxShare",
current_url:'https://szm.ichunt.com/h5/view/' current_url:location.href
}); });
} }
else{ else{
if (util.getCookie("Yo4teW_uid")) { if (util.getCookie("Yo4teW_uid")) {
this.$store.dispatch({ this.$store.dispatch({
type: "wxShare", type: "wxShare",
current_url:'https://szm.ichunt.com/h5/view/' current_url:location.href
}); });
} }
} }
......
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