From 154562846d5a80dc8f083458842a5cd648d62354 Mon Sep 17 00:00:00 2001 From: duanxiaohai <1812246227@qq.com> Date: Fri, 11 Aug 2023 09:34:18 +0800 Subject: [PATCH] lq --- src/pagesD/xskz/index.vue | 14 ++++++++++++-- src/request/interface.js | 4 ++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/pagesD/xskz/index.vue b/src/pagesD/xskz/index.vue index 17e4d09..95332b6 100644 --- a/src/pagesD/xskz/index.vue +++ b/src/pagesD/xskz/index.vue @@ -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); + }); + }, }, }; diff --git a/src/request/interface.js b/src/request/interface.js index ec83fef..3d32405 100644 --- a/src/request/interface.js +++ b/src/request/interface.js @@ -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: {