This commit is contained in:
pengxiaolong
2025-05-13 22:16:09 +08:00
parent c006a8e63d
commit 5f8ff971d4
34 changed files with 411 additions and 309 deletions

View File

@@ -10,9 +10,23 @@ const _sfc_main = {
return {};
},
onLoad() {
this.requestSomething();
},
methods: {
// 方法定义
requestSomething() {
common_vendor.wx$1.request({
url: "http://192.168.0.218:8086/user/login",
// 请求的 URL
method: "POST",
// 请求方式
success: (res) => {
common_vendor.index.__f__("log", "at pages/Home/Home.vue:37", "请求成功", res.data);
},
fail: (err) => {
common_vendor.index.__f__("error", "at pages/Home/Home.vue:40", "请求失败", err);
}
});
}
},
components: {
topNavigation,