feat(system):下发图纸模块
This commit is contained in:
parent
9172b9c881
commit
7466fcf08f
15
src/utils/external-api.js
Normal file
15
src/utils/external-api.js
Normal file
@ -0,0 +1,15 @@
|
||||
/**
|
||||
* 外部接口调用通用方法
|
||||
*/
|
||||
import axios from "axios";
|
||||
|
||||
export function getstate() {
|
||||
|
||||
return axios.get('/all/getstate?UTF-8')
|
||||
.then(response => {
|
||||
return response.data;
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('API 请求失败:', error);
|
||||
});
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user