@@ -21,10 +21,10 @@
"path": "pages/login",
"style": {
// #ifdef MP-KUAISHOU
- "navigationBarTitleText": "四海剧场",
+ "navigationBarTitleText": "四海剧场|login",
// #endif
// #ifdef MP-TOUTIAO | MP-WEIXIN
- "navigationBarTitleText": "张四爷剧场",
+ "navigationBarTitleText": "张四爷剧场|login",
"enablePullDownRefresh": false
}
@@ -52,6 +52,12 @@ export default {
},
onLoad(options) {
console.log('-->data', options)
+ if (this.$api.user.isLogin()) {
+ uni.reLaunch({
+ url: '/pages/index/index'
+ })
+ return
+ }
this.path = options.path ? options.path : this.path
this.path = this.path.replace('//', '/')
this.path = this.path.indexOf('/') !== 0 ? '/' + this.path : this.path