This commit is contained in:
pengxiaolong
2025-05-14 16:09:14 +08:00
parent 5f8ff971d4
commit 838cfd9986
45 changed files with 437 additions and 270 deletions

View File

@@ -26,21 +26,21 @@ export default {
return {};
},
onLoad() {
this.requestSomething();
// this.requestSomething();
},
methods: {
requestSomething() {
wx.request({
url: "http://192.168.0.218:8086/user/login", // 请求的 URL
method: "POST", // 请求方式
success: (res) => {
console.log("请求成功", res.data); // 处理成功的响应
},
fail: (err) => {
console.error("请求失败", err); // 处理失败的响应
},
});
},
// requestSomething() {
// wx.request({
// url: "http://192.168.0.218:8086/user/login", // 请求的 URL
// method: "POST", // 请求方式
// success: (res) => {
// console.log("请求成功", res.data); // 处理成功的响应
// },
// fail: (err) => {
// console.error("请求失败", err); // 处理失败的响应
// },
// });
// },
},
components: {
topNavigation,