feat: 111
This commit is contained in:
@@ -134,10 +134,12 @@ export default class RequestHttp {
|
||||
this.apiNameArray.forEach(apiName => {
|
||||
let responseApiArray = responseUrl.split("/"); //分割
|
||||
let method = responseApiArray[responseApiArray.length - 1]; //取最后一个
|
||||
console.log("method=", method);
|
||||
console.log("noMessageApiNameArray=", this.noMessageApiNameArray);
|
||||
let result = this.noMessageApiNameArray.includes(method); //判断是否在不提示的数组中
|
||||
if (!result && responseUrl.includes(apiName)) {
|
||||
//如果不在不提示的数组中并且请求地址包含指定的方法
|
||||
ElMessage.success(data.msg);
|
||||
// ElMessage.success(data.msg);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user