forked from integrated_whb/integrated_whb_vue
axios
parent
57c0b9a589
commit
60eae2d306
|
@ -81,12 +81,6 @@ export function post(url, params) {
|
|||
},
|
||||
})
|
||||
.then((res) => {
|
||||
if (
|
||||
res.config.url === "/app/audioOrVideo/createUploadVideo" ||
|
||||
res.config.url === "/app/audioOrVideo/refreshUploadVideo"
|
||||
) {
|
||||
res.data.result = "success";
|
||||
}
|
||||
if (res.data.result === "success") {
|
||||
if (res.config.url.split("/")[1] === "positAlarm") {
|
||||
if (res.data.code === 200 || res.data.code === 0) resolve(res.data);
|
||||
|
|
Loading…
Reference in New Issue