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

Fix trigger error

parent cbf117ec
......@@ -188,7 +188,7 @@ export default [
path: '/exception/trigger',
name: 'trigger',
hideInMenu: true,
component: './Exception/triggerException',
component: './Exception/TriggerException',
},
],
},
......
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,
......
import request from '@/utils/request';
export default async function query(code) {
export default async function queryError(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