vue-element-admin
vue-element-admin copied to clipboard
登陆接口请求成功后,能得到数据,但是页面不能跳转。
设置路由,然后进行路由跳转
我也遇到这个问题,不知道 this.$store.dispatch('user/login', this.loginForm) .then(() => { console.log(1) this.$router.push({ path: this.redirect || '/', query: this.otherQuery }) this.loading = false })
为什么不走then
我也遇到这个问题,不知道
this.$store.dispatch('user/login', this.loginForm) .then(() => { console.log(1) this.$router.push({ path: this.redirect || '/', query: this.otherQuery }) this.loading = false })
为什么不走then
请问问题解决了吗?
this.$refs.loginForm.validate(valid => { if (valid) {
确定自己的valid 是为true
怎么解决的