We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a890737 commit dd2d8c4Copy full SHA for dd2d8c4
src/utils/axios-req.js
@@ -71,8 +71,8 @@ service.interceptors.response.use(
71
return res
72
}
73
const { code, msg } = res.data
74
- const successCode = '0,200,20000'
75
- const noAuthCode = '401,403'
+ const successCode = [0,200,20000]
+ const noAuthCode = [401,403]
76
if (successCode.includes(code)) {
77
return res.data
78
} else {
src/views/basic-demo/worker/index.vue
@@ -2,7 +2,7 @@
2
<div>
3
<div>the recommend using way of worker</div>
4
<div>计算结果:{{ showPageRef }}</div>
5
- <el-icon class="is-loading" v-if="!showPageRef">
+ <el-icon v-if="!showPageRef" class="is-loading">
6
<Loading />
7
</el-icon>
8
</div>
0 commit comments