我做了个登录页面。
async onSubmit(values) { const { data:res } = await this.$http.get('index/hello') // if(res.meta.status =='200') return console.log("登录成功") this.$router.push("/home")
}
我这样写的。为啥在电脑上能跳转到 home 在手机上点了啥反应没有呢?
我做了个登录页面。
async onSubmit(values) { const { data:res } = await this.$http.get('index/hello') // if(res.meta.status =='200') return console.log("登录成功") this.$router.push("/home")
}
我这样写的。为啥在电脑上能跳转到 home 在手机上点了啥反应没有呢?
|
lisianthusJul 25, 2020
1
是不是因为 status 是 200 而直接 return 了
|
|
2
@lisianthus 我给他屏蔽 1 了啊?
|
|
liyg04120414Jul 26, 2020
3
用 vconsole 调试下,看看有没有报错,如果没有,换 this.$router.push({name: 'xxx'})试试
|