From 05b5c1f397bad8fb53a73ffe55209f573d309f4e Mon Sep 17 00:00:00 2001 From: 付延余 <f-yanyu@outlook.com> Date: 星期四, 22 十二月 2022 00:25:30 +0800 Subject: [PATCH] 日发运计划接口同步后台更新。完善页面细节 --- api/global.js | 13 ++++--------- 1 files changed, 4 insertions(+), 9 deletions(-) diff --git a/api/global.js b/api/global.js index c8be2af..37fcfb2 100644 --- a/api/global.js +++ b/api/global.js @@ -1,6 +1,7 @@ // import request from '@/config/request'; +import { BaseUrl } from '@/utils/request.js' -// let baseUrl = "/"; +// let BaseUrl = "/"; // const CURRENT_KEY = 'CURRENT_KEY'; // const PARAM_KEY = 'PARAM_KEY'; @@ -27,12 +28,6 @@ }); } -// const baseUrl = 'http://192.168.3.159:9999' -// const baseUrl = 'https://mx.jzeg.cn:443/app'; -// let baseUrl = 'http://192.168.0.114:9999'; - -const baseUrl = "https://mx.jzeg.cn:9998"; // 姝e紡鏈嶅姟 - // POST璇锋眰 function apiLogin({ username, @@ -44,7 +39,7 @@ return new Promise((resolve, reject) => { uni.request({ - url: baseUrl + "/auth/oauth/token?grant_type=password&scope=server", + url: BaseUrl + "/auth/oauth/token?grant_type=password&scope=server", method: "POST", data: { username, @@ -79,7 +74,7 @@ return new Promise((resolve, reject) => { uni.request({ - url: baseUrl + `/auth/mobile/token/social?grant_type=mobile&mobile=MINI@${code}`, + url: BaseUrl + `/auth/mobile/token/social?grant_type=mobile&mobile=MINI@${code}`, method: "POST", header: { "TENANT-ID": "5", -- Gitblit v1.9.1