From a0f333ef7944e2964e6807e86fd6ebe50f66402f Mon Sep 17 00:00:00 2001
From: 付延余 <f-yanyu@outlook.com>
Date: 星期五, 29 七月 2022 11:18:58 +0800
Subject: [PATCH] editWX

---
 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