From 910f2ef56d0d49a4ce24b2f33860dce4d739b1b4 Mon Sep 17 00:00:00 2001 From: 付延余 <f-yanyu@outlook.com> Date: 星期三, 03 八月 2022 16:58:06 +0800 Subject: [PATCH] 项目整体细节,新增主页煤仓剩余量图表。 --- api/global.js | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/api/global.js b/api/global.js index a0e15ad..5c99721 100644 --- a/api/global.js +++ b/api/global.js @@ -27,6 +27,8 @@ }); } +const baseUrl = 'http://192.168.3.159:9999' + // POST璇锋眰 function apiLogin({ username, @@ -38,7 +40,7 @@ return new Promise((resolve, reject) => { uni.request({ - url: "/auth/oauth/token?grant_type=password&scope=server", + url: baseUrl + "/auth/oauth/token?grant_type=password&scope=server", method: "POST", data: { username, @@ -55,6 +57,7 @@ resolve(res); }, fail: (err) => { + console.log('閿欒',err); uni.hideLoading(); uni.showToast({ icon: 'none', -- Gitblit v1.9.1