diff --git a/src/pages/Exception/models/error.js b/src/pages/Exception/models/error.js index d74d1bfc64e14819ab63a1086f17af6227e2793c..1b18969fb516b92e760632b645af0cfeccf81743 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 { query } from '@/services/error'; export default { namespace: 'error', diff --git a/src/pages/Exception/services/error.js b/src/services/error.js similarity index 61% rename from src/pages/Exception/services/error.js rename to src/services/error.js index 2cb9456cf9df7a622a5c2b2ee8dea5ba69f75110..7e1eeee1948fcbcd725af01420b7905432816b93 100644 --- a/src/pages/Exception/services/error.js +++ b/src/services/error.js @@ -1,4 +1,4 @@ -import request from '../../../utils/request'; +import request from '../utils/request'; export async function query(code) { return request(`/api/${code}`);