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 | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/pages/api/common/common.js b/pages/api/common/common.js index 5b4a46d..4b3f3b1 100644 --- a/pages/api/common/common.js +++ b/pages/api/common/common.js @@ -1,11 +1,5 @@ import md5 from '@/static/js/md5.js' -let network = uni.getStorageSync('Network') -let baseUrl = '' -if (network) { - baseUrl = `http://${network[0].ip}:${network[0].port}/${network[0].address}` -} -console.log(network); async function onLogin(user) { let _this = this, item = {}; @@ -16,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