Flatten nested repos
This commit is contained in:
19
test/vuex/cpone-sample-lab/api/req.js
Normal file
19
test/vuex/cpone-sample-lab/api/req.js
Normal file
@@ -0,0 +1,19 @@
|
||||
const URL = "/one-api/mockup/samplinglab-cpone/";
|
||||
export async function req(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + "req/info", prm);
|
||||
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