From ffc305e453f9650bc45c16fd63efc3b33bb69cc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=84=9A=E9=81=93?= Date: Thu, 23 Aug 2018 12:19:25 +0800 Subject: [PATCH] move error service to the right place --- src/pages/Exception/models/error.js | 2 +- src/{pages/Exception => }/services/error.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/{pages/Exception => }/services/error.js (61%) diff --git a/src/pages/Exception/models/error.js b/src/pages/Exception/models/error.js index d74d1bfc..1b18969f 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 2cb9456c..7e1eeee1 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}`); -- GitLab