Commit 97921c6ac431330d60341259d80c97906e4a42e1
1 parent
e8d5527c
perf(src/packages): 优化3D编辑器,服务端抛错,页面没有任何提示信息
Showing
3 changed files
with
24 additions
and
11 deletions
| ... | ... | @@ -14,6 +14,9 @@ export function saveOrUpdateThreeJsModel(params) { |
| 14 | 14 | data: params['data'], |
| 15 | 15 | timeout: 30 * 1000 |
| 16 | 16 | }, |
| 17 | + { | |
| 18 | + errorMessageMode: '' | |
| 19 | + } | |
| 17 | 20 | ) |
| 18 | 21 | } |
| 19 | 22 | |
| ... | ... | @@ -21,17 +24,27 @@ export function saveOrUpdateThreeJsModel(params) { |
| 21 | 24 | * @description: 3D模型 获取 api |
| 22 | 25 | */ |
| 23 | 26 | export function getThreeJsModel(id) { |
| 24 | - return defHttp.get({ | |
| 25 | - url: API['URL'] + '/' + id | |
| 26 | - }) | |
| 27 | + return defHttp.get( | |
| 28 | + { | |
| 29 | + url: API['URL'] + '/' + id | |
| 30 | + }, | |
| 31 | + { | |
| 32 | + errorMessageMode: '' | |
| 33 | + } | |
| 34 | + ) | |
| 27 | 35 | } |
| 28 | 36 | |
| 29 | 37 | /** |
| 30 | - * @description: 3D模型 获取json数据 api | |
| 38 | + * @description: 3D模型 获取json数据 api | |
| 31 | 39 | */ |
| 32 | 40 | export function getThreeJsModelByJson(id) { |
| 33 | - return defHttp.get({ | |
| 34 | - url: API['URL'] + '/json' +'/'+id + '/root.json', | |
| 35 | - timeout: 30 * 1000 | |
| 36 | - }) | |
| 37 | -} | |
| \ No newline at end of file | ||
| 41 | + return defHttp.get( | |
| 42 | + { | |
| 43 | + url: API['URL'] + '/json' + '/' + id + '/root.json', | |
| 44 | + timeout: 30 * 1000 | |
| 45 | + }, | |
| 46 | + { | |
| 47 | + errorMessageMode: '' | |
| 48 | + } | |
| 49 | + ) | |
| 50 | +} | ... | ... |