Flatten nested repos
This commit is contained in:
25
test/vuex/one-process-ref-internal/api/detail.js
Normal file
25
test/vuex/one-process-ref-internal/api/detail.js
Normal file
@@ -0,0 +1,25 @@
|
||||
const URL = "/one-api/mockup/process/refinternal/";
|
||||
|
||||
export async function search(token, order_id, query) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'ri_detail/search', {
|
||||
token: token,
|
||||
order_id: order_id,
|
||||
query: query
|
||||
});
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch (e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user