From 5596cc695d444d9ef13661148d6e227f8ed3171e Mon Sep 17 00:00:00 2001
From: zhangxiaoxu123 <819527061@qq.com>
Date: 星期四, 28 七月 2022 20:25:37 +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