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