From 9ab6b38c098f857f2ce0772693142c930e4f9b6d Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期六, 30 三月 2024 10:44:03 +0800 Subject: [PATCH] # --- pages/api/common/common.js | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/pages/api/common/common.js b/pages/api/common/common.js index 67a13a7..4b3f3b1 100644 --- a/pages/api/common/common.js +++ b/pages/api/common/common.js @@ -1,8 +1,5 @@ import md5 from '@/static/js/md5.js' -let network = uni.getStorageSync('Network') -let baseUrl = `http://${network[0].ip}:${network[0].port}/${network[0].address}` - async function onLogin(user) { let _this = this, item = {}; @@ -13,6 +10,7 @@ password: md5.hex_md5(user.password) }, }).then((result) => { + console.log(result); result = result.data if (result.code === 200 && result.data.token) { uni.setStorageSync('token', result.data.token); -- Gitblit v1.9.1