关于401的重登陆处理

This commit is contained in:
aixianling
2023-01-04 14:01:49 +08:00
parent a2ce29f6e5
commit a99d030b46

View File

@@ -49,15 +49,15 @@ export default {
}
})
},
getList() {
getList(retry = false) {
this.$http.post("/app/appvideoinfo/list", null, {
withoutToken: true,
withoutToken: !this.user.token || retry,
params: {size: 20}
}).then(res => {
if (res?.data) {
this.list = res.data.records
}
})
}).catch(() => !retry && this.getList(true))
},
handleDetail(id) {
if (!this.user.token) this.wxLogin++