This commit is contained in:
duanxiaohai 2023-08-11 09:34:18 +08:00
parent e3090d50d9
commit 154562846d
2 changed files with 14 additions and 4 deletions

View File

@ -77,7 +77,7 @@ export default {
};
},
onLoad() {
this.lytrelease();
this.exhibitionList();
},
onShow() {
// this.getData();
@ -103,7 +103,7 @@ export default {
console.log(e);
});
},
lytrelease() {
exhibitionList() {
this.http
.request("/exhibition/list", {}, "get")
.then((res) => {
@ -117,6 +117,16 @@ export default {
console.log(err);
});
},
collect() {
this.http
.request("/worksCollection/addCollection", {}, "post")
.then((res) => {
console.log(res.data);
})
.catch((err) => {
console.log(err);
});
},
},
};
</script>

View File

@ -5,8 +5,8 @@
export default {
config: {
baseUrl: "http://10.0.0.61:8080/h5/api", //俞燕红-小程序不能配跨域
// baseUrl: "/pre", //俞燕红-跨域
// baseUrl: "http://10.0.0.61:8080/h5/api", //俞燕红-小程序不能配跨域
baseUrl: "/pre", //俞燕红-跨域
// baseUrl: "https://yxx.ydool.net/h5/api", //线上
// baseUrl: "/h5/api", //h5
header: {