Authored by htoooth

add request login

... ... @@ -27,7 +27,7 @@ export default {
methods: {
},
computed: {
...mapState(['status', 'needLogin'])
...mapState(['status'])
},
components: {
FormPage,
... ... @@ -35,11 +35,6 @@ export default {
LayoutApp
},
mounted() {
if (this.needLogin) {
this.$yoho.ready(() => {
this.$yoho.goLogin({});
});
}
}
};
</script>
... ...
... ... @@ -8,8 +8,7 @@ export default function() {
fetching: false,
token: false,
status: -1,
message: '',
needLogin: false
message: ''
},
actions,
mutations
... ...