Commit 90803541d303fdf089f8e58dfd8182c51e29cf71
1 parent
25d1dd43
Update request environment check from 'production' to 'abv' in request interceptor
Showing
1 changed file
with
1 additions
and
1 deletions
project-slwl-admin-vue/src/utils/request.js
| ... | ... | @@ -12,7 +12,7 @@ console.log(process.env.NODE_ENV, '环境') |
| 12 | 12 | service.interceptors.request.use( |
| 13 | 13 | config => { |
| 14 | 14 | // 线上环境不允许进行数据库方面的增删改查的修改 |
| 15 | - if (process.env.NODE_ENV === 'production' && ['put', 'post', 'delete'].includes(config.method) && !whiteApiList.filter(item => { | |
| 15 | + if (process.env.NODE_ENV === 'abv' && ['put', 'post', 'delete'].includes(config.method) && !whiteApiList.filter(item => { | |
| 16 | 16 | return config.url.indexOf(item) !== -1 |
| 17 | 17 | }).length) { |
| 18 | 18 | return Message({ | ... | ... |