From 55dc1d1d1561075a0ccff79d8d6ac1b901e55527 Mon Sep 17 00:00:00 2001
From: zhangxiaoxu123 <819527061@qq.com>
Date: 星期五, 29 七月 2022 09:10:10 +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