Commit d3719e8e authored by afc163's avatar afc163 Committed by 偏右

Fix trigger error

parent cbf117ec
...@@ -188,7 +188,7 @@ export default [ ...@@ -188,7 +188,7 @@ export default [
path: '/exception/trigger', path: '/exception/trigger',
name: 'trigger', name: 'trigger',
hideInMenu: true, hideInMenu: true,
component: './Exception/triggerException', component: './Exception/TriggerException',
}, },
], ],
}, },
......
import { query } from '@/services/error'; import queryError from '@/services/error';
export default { export default {
namespace: 'error', namespace: 'error',
...@@ -10,7 +10,7 @@ export default { ...@@ -10,7 +10,7 @@ export default {
effects: { effects: {
*query({ payload }, { call, put }) { *query({ payload }, { call, put }) {
yield call(query, payload.code); yield call(queryError, payload.code);
yield put({ yield put({
type: 'trigger', type: 'trigger',
payload: payload.code, payload: payload.code,
......
import request from '@/utils/request'; import request from '@/utils/request';
export default async function query(code) { export default async function queryError(code) {
return request(`/api/${code}`); return request(`/api/${code}`);
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment