|
@@ -3,7 +3,7 @@ import { Notification, MessageBox, Message } from 'element-ui';
|
|
|
import store from '@/store';
|
|
|
import { getToken } from '@/utils/auth';
|
|
|
import errorCode from '@/utils/errorCode';
|
|
|
-import jsonFormat from "@/utils/JsonFormat";
|
|
|
+import jsonlint from "@/utils/jsonlint";
|
|
|
import Snowflake from '@/utils/Snowflake';
|
|
|
|
|
|
axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
|
|
@@ -17,7 +17,7 @@ const service = axios.create({
|
|
|
// Do whatever you want to transform the data
|
|
|
if (typeof data === 'string') {
|
|
|
try {
|
|
|
- data = jsonFormat.parse(data);
|
|
|
+ data = jsonlint.parse(data);
|
|
|
} catch (e) { /* Ignore */ }
|
|
|
}
|
|
|
return data;
|