gyh change
This commit is contained in:
@@ -124,7 +124,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from 'vuex';
|
||||
export default {
|
||||
computed: {
|
||||
...mapState(['hasLogin', 'token'])
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
userInfo: {},
|
||||
@@ -136,6 +140,12 @@ export default {
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
// 尝试登录
|
||||
if (!this.hasLogin) {
|
||||
uni.navigateTo({
|
||||
url: "../../pageA/login/login"
|
||||
})
|
||||
}
|
||||
this.getUserInfo();
|
||||
},
|
||||
onNavigationBarButtonTap() {
|
||||
@@ -160,7 +170,7 @@ export default {
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.mine {
|
||||
min-height: calc(calc(100vh - var(--window-top)) - 50px);
|
||||
min-height: calc(calc(100vh - var(--window-top)));
|
||||
background: #ECECEC;
|
||||
.mine-top {
|
||||
// width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user