Merge branch 'hotfix/错误单词'
Former-commit-id: 3364230e204cc5d345854d3bdb5fcc5f7057980e [formerly 3364230e204cc5d345854d3bdb5fcc5f7057980e [formerly 3364230e204cc5d345854d3bdb5fcc5f7057980e [formerly 3364230e204cc5d345854d3bdb5fcc5f7057980e [formerly 23b02e9b0e23583548f94baaf68580efa8089e24 [formerly 7639a1c1484adb1776ce1f132a97d82592733ccb]]]]] Former-commit-id: e3e5ebfd8341b6b4dc255a9158939e39fc16a4a1 Former-commit-id: b6c8c4fee906c4c9188f84843168448ef7db31b4 Former-commit-id: aa7410d52971c330fcaf4acf772b125984dd3c0d [formerly 881dd4533c7222a6f34ccf25a09fca35cb4f35da] Former-commit-id: 46189795ecdadabbe033548a340653e7be5a47e2 Former-commit-id: aff0ca780300f164ffae0ff37f4d61b1d11d8af3 Former-commit-id: b07d5cf0ec4708f8a3629711661a3d9da6976fe4 Former-commit-id: 6fc9e042e8077fb886553dd6d624329c247486f0 Former-commit-id: 5c4074276fcc572782fc090de7589ef06be07cea
This commit is contained in:
@@ -4,7 +4,7 @@ import { Message } from 'element-ui'
|
||||
import util from '@/libs/util'
|
||||
|
||||
// 创建一个错误
|
||||
function errorCreat (msg) {
|
||||
function errorCreate (msg) {
|
||||
const err = new Error(msg)
|
||||
errorLog(err)
|
||||
throw err
|
||||
@@ -72,11 +72,11 @@ service.interceptors.response.use(
|
||||
return dataAxios.data
|
||||
case 'xxx':
|
||||
// [ 示例 ] 其它和后台约定的 code
|
||||
errorCreat(`[ code: xxx ] ${dataAxios.msg}: ${response.config.url}`)
|
||||
errorCreate(`[ code: xxx ] ${dataAxios.msg}: ${response.config.url}`)
|
||||
break
|
||||
default:
|
||||
// 不是正确的 code
|
||||
errorCreat(`${dataAxios.msg}: ${response.config.url}`)
|
||||
errorCreate(`${dataAxios.msg}: ${response.config.url}`)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user