提交 d44185a7 作者: 毛细亚

1

上级 188e64a2
...@@ -109,7 +109,6 @@ const actions = { ...@@ -109,7 +109,6 @@ const actions = {
return taskData return taskData
} else { } else {
console.error('获取任务数据失败:', res.msg) console.error('获取任务数据失败:', res.msg)
throw new Error(res.msg || '获取任务数据失败')
} }
} catch (error) { } catch (error) {
console.error('获取任务数据异常:', error) console.error('获取任务数据异常:', error)
......
...@@ -76,7 +76,8 @@ service.interceptors.response.use( ...@@ -76,7 +76,8 @@ service.interceptors.response.use(
type: 'error', type: 'error',
duration: 2 * 1000 duration: 2 * 1000
}) })
if (res.status_code === -100) { if (res.status_code === -100 || res.status_code === -1) {
console.log(1231321321)
// 登录 过期 重新去登录 // 登录 过期 重新去登录
setTimeout(() => { setTimeout(() => {
if(process.env.NODE_ENV !== 'development'){ if(process.env.NODE_ENV !== 'development'){
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论