From e333d366495e2406618c5b0daf3fe53a759903a6 Mon Sep 17 00:00:00 2001
From: 付延余 <f-yanyu@outlook.com>
Date: 星期二, 23 八月 2022 11:20:09 +0800
Subject: [PATCH] 日计划
---
api/global.js | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/api/global.js b/api/global.js
index a0e15ad..fddc019 100644
--- a/api/global.js
+++ b/api/global.js
@@ -27,6 +27,10 @@
});
}
+// const baseUrl = 'http://192.168.0.159:9999'
+// const baseUrl = 'https://mx.jzeg.cn:443/app';
+const baseUrl = "https://mx.jzeg.cn:9998";
+
// POST璇锋眰
function apiLogin({
username,
@@ -38,7 +42,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 +59,7 @@
resolve(res);
},
fail: (err) => {
+ console.log('閿欒',err);
uni.hideLoading();
uni.showToast({
icon: 'none',
--
Gitblit v1.9.1