提交 33e4eeb7 authored 作者: lihuihui's avatar lihuihui

update

上级 3a7a144a
......@@ -165,7 +165,9 @@ export default {
this.isQrPageShow = true
}
// 订单为0元时,判断该步骤后面是否有步骤,若有就去下一步骤,否则返回首页
res.code === 100 && this.stepList.length === this.data.num ? this.$router.push('/') : this.$emit('next')
if (res.code === 999) {
this.stepList.length === this.data.num ? this.$router.push('/') : this.$emit('next')
}
})
}
}
......
......@@ -50,7 +50,7 @@ httpRequest.interceptors.request.use(
httpRequest.interceptors.response.use(
function (response) {
const { data } = response
if (data.code && data.code !== 100) {
if (data.code && data.code !== 999) {
// 未登录
if (data.code === 4001) {
window.location.href = `${import.meta.env.VITE_LOGIN_URL}?rd=${encodeURIComponent(window.location.href)}`
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论