vue-element-admin icon indicating copy to clipboard operation
vue-element-admin copied to clipboard

登陆接口请求成功后,能得到数据,但是页面不能跳转。

Open 897633560 opened this issue 5 years ago • 5 comments

Uploading 1560320495(1).jpg…

897633560 avatar Jun 12 '19 07:06 897633560

设置路由,然后进行路由跳转

longmengyu avatar Jun 17 '19 02:06 longmengyu

我也遇到这个问题,不知道 this.$store.dispatch('user/login', this.loginForm) .then(() => { console.log(1) this.$router.push({ path: this.redirect || '/', query: this.otherQuery }) this.loading = false }) 为什么不走then

fzg2lj avatar Jun 25 '19 04:06 fzg2lj

我也遇到这个问题,不知道 this.$store.dispatch('user/login', this.loginForm) .then(() => { console.log(1) this.$router.push({ path: this.redirect || '/', query: this.otherQuery }) this.loading = false }) 为什么不走then

请问问题解决了吗?

sundali avatar Nov 19 '19 10:11 sundali

this.$refs.loginForm.validate(valid => { if (valid) { 确定自己的valid 是为true

zhoupeihuang avatar Mar 17 '20 07:03 zhoupeihuang

怎么解决的

ramjustin avatar Dec 20 '23 03:12 ramjustin