Flatten nested repos
This commit is contained in:
25
test/vuex/one-queue-fo-v2/api/summary.js
Normal file
25
test/vuex/one-queue-fo-v2/api/summary.js
Normal file
@@ -0,0 +1,25 @@
|
||||
// API :
|
||||
// search bank
|
||||
// paramater : query , page , rowPerPage
|
||||
const URL = "http://" + window.location.host + ":9099/";
|
||||
const URLAPI = "/one-api/antrian/";
|
||||
|
||||
export async function loadx() {
|
||||
try {
|
||||
// var resp = await axios.get(URL + 'info');
|
||||
var resp = await axios.post(URLAPI + 'queuefov2/call_info', { token: one_token() });
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp;
|
||||
return data;
|
||||
} catch (e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user