Commit cacf4068 by yiyu.li

bug

parent 17f44366
...@@ -461,6 +461,31 @@ export default { ...@@ -461,6 +461,31 @@ export default {
this.page = value; this.page = value;
this.data1 = this.search(this.page, this.pagesize); this.data1 = this.search(this.page, this.pagesize);
}, },
request(url, data, type) {
if (type == "get") {
return this.axios
.request({
url: url,
params: data,
method: type,
})
.then((res) => {
return res;
})
.catch((error) => error);
} else {
return this.axios
.request({
url: url,
data,
method: type,
})
.then((res) => {
return res;
})
.catch((error) => error);
}
},
}, },
}; };
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment