|
@@ -19,14 +19,13 @@ export default {
|
|
|
...mapGetters(['isSupertube'])
|
|
|
},
|
|
|
async created() {
|
|
|
- const ua = window.navigator.userAgent.toLowerCase();
|
|
|
- this.isWechatEnv = ua.match(/micromessenger/i) == 'micromessenger' && window.location.search !== "?from=authorization";
|
|
|
-
|
|
|
- if (this.isWechatEnv) {
|
|
|
- window.location.href = `${config.wechatUrl}?back=${config.backUrl}&name=${config.title}`
|
|
|
- }else{
|
|
|
- window.location.href = `${config.wechatUrl}/#/wechat?back=${config.backUrl}&name=${config.title}`
|
|
|
- }
|
|
|
+ // const ua = window.navigator.userAgent.toLowerCase();
|
|
|
+ // this.isWechatEnv = ua.match(/micromessenger/i) == 'micromessenger' && window.location.search !== "?from=authorization";
|
|
|
+ // if (this.isWechatEnv) {
|
|
|
+ // window.location.href = `${config.wechatUrl}?back=${config.backUrl}&name=${config.title}`
|
|
|
+ // }else{
|
|
|
+ // window.location.href = `${config.wechatUrl}/#/wechat?back=${config.backUrl}&name=${config.title}`
|
|
|
+ // }
|
|
|
|
|
|
await this.getMenu()
|
|
|
},
|