Merge branch 'hotfix/错误单词' into develop
Former-commit-id: 00fd1dc375da435e53971a7e9386329d13a0c9ab [formerly 00fd1dc375da435e53971a7e9386329d13a0c9ab [formerly 00fd1dc375da435e53971a7e9386329d13a0c9ab [formerly 00fd1dc375da435e53971a7e9386329d13a0c9ab [formerly 2d85712b0937d3f5386dc6ae54dd7fcc2c3700a9 [formerly bf442cfa8d3d114cef1bbc89b6fcfa6000c31ead]]]]] Former-commit-id: 83866b8e490f4ee41619c7edc2747df1819c0acf Former-commit-id: 5cd66778a475b5bb2ff7f2eed22dd7b56d538ed8 Former-commit-id: 088a08b3bb82b01f80236bf0f020cf387f163988 [formerly 388811fb79e4ebd8b9e978723496ab5d39f9d53d] Former-commit-id: 00133023405173ce40118b35b0d0fe4197d2d717 Former-commit-id: 1f994134978caeb1910ffeb55ae551cf28969f81 Former-commit-id: dbfbdc6b7d3a5cfb0c299e5b986243f462f77b6f Former-commit-id: 0febe9b8a9ab46d590dca692254048a15b6bde1d Former-commit-id: 6d019ab810a48a40af4125954db14774fa642895
This commit is contained in:
@@ -4,7 +4,7 @@ import { Message } from 'element-ui'
|
|||||||
import util from '@/libs/util'
|
import util from '@/libs/util'
|
||||||
|
|
||||||
// 创建一个错误
|
// 创建一个错误
|
||||||
function errorCreat (msg) {
|
function errorCreate (msg) {
|
||||||
const err = new Error(msg)
|
const err = new Error(msg)
|
||||||
errorLog(err)
|
errorLog(err)
|
||||||
throw err
|
throw err
|
||||||
@@ -72,11 +72,11 @@ service.interceptors.response.use(
|
|||||||
return dataAxios.data
|
return dataAxios.data
|
||||||
case 'xxx':
|
case 'xxx':
|
||||||
// [ 示例 ] 其它和后台约定的 code
|
// [ 示例 ] 其它和后台约定的 code
|
||||||
errorCreat(`[ code: xxx ] ${dataAxios.msg}: ${response.config.url}`)
|
errorCreate(`[ code: xxx ] ${dataAxios.msg}: ${response.config.url}`)
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
// 不是正确的 code
|
// 不是正确的 code
|
||||||
errorCreat(`${dataAxios.msg}: ${response.config.url}`)
|
errorCreate(`${dataAxios.msg}: ${response.config.url}`)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user