diff --git a/config/router.config.js b/config/router.config.js index 87b1b39d077b08b49eae6a994f8713bab39c623d..963bce26d656966f1efdf87375e5bb58a05481c1 100644 --- a/config/router.config.js +++ b/config/router.config.js @@ -188,7 +188,7 @@ export default [ path: '/exception/trigger', name: 'trigger', hideInMenu: true, - component: './Exception/triggerException', + component: './Exception/TriggerException', }, ], }, diff --git a/src/pages/Exception/models/error.js b/src/pages/Exception/models/error.js index 1b18969fb516b92e760632b645af0cfeccf81743..1bfd9392139bb91e8a986b0c5878f6cea5d9c45f 100644 --- a/src/pages/Exception/models/error.js +++ b/src/pages/Exception/models/error.js @@ -1,4 +1,4 @@ -import { query } from '@/services/error'; +import queryError from '@/services/error'; export default { namespace: 'error', @@ -10,7 +10,7 @@ export default { effects: { *query({ payload }, { call, put }) { - yield call(query, payload.code); + yield call(queryError, payload.code); yield put({ type: 'trigger', payload: payload.code, diff --git a/src/services/error.js b/src/services/error.js index db86886590e39ce570ae9345c8f6cd1905401b5d..13f2e942c23377dad424424c0bbce1ebef6871cd 100644 --- a/src/services/error.js +++ b/src/services/error.js @@ -1,5 +1,5 @@ import request from '@/utils/request'; -export default async function query(code) { +export default async function queryError(code) { return request(`/api/${code}`); }