chore:调整接口地址https
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
fbc35a7849
commit
1b9fb3069d
|
|
@ -10,9 +10,9 @@ VITE_APP_PUBLIC_BASE=/
|
||||||
# 登录页面
|
# 登录页面
|
||||||
VITE_LOGIN_URL = '/pages/auth/index'
|
VITE_LOGIN_URL = '/pages/auth/index'
|
||||||
|
|
||||||
VITE_SERVER_BASEURL = 'http://mapi.xianglexue.com/api/v1'
|
VITE_SERVER_BASEURL = 'https://mapi.xianglexue.com/api/v1'
|
||||||
VITE_DESKTOP_SERVER_BASEURL = 'http://api.xianglexue.com/api/v1'
|
VITE_DESKTOP_SERVER_BASEURL = 'https://api.xianglexue.com/api/v1'
|
||||||
VITE_UPLOAD_BASEURL = 'http://mapi.xianglexue.com/api/v1'
|
VITE_UPLOAD_BASEURL = 'https://mapi.xianglexue.com/api/v1'
|
||||||
|
|
||||||
# h5是否需要配置代理
|
# h5是否需要配置代理
|
||||||
VITE_APP_PROXY=false
|
VITE_APP_PROXY=false
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import type { GenerateServiceProps } from 'openapi-ts-request'
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
schemaPath: 'http://mapi.xianglexue.com/apidoc/doc.json',
|
schemaPath: 'https://mapi.xianglexue.com/apidoc/doc.json',
|
||||||
serversPath: './src/service',
|
serversPath: './src/service',
|
||||||
requestLibPath: `import request from '@/http/vue-query';\n import { CustomRequestOptions } from '@/http/types';`,
|
requestLibPath: `import request from '@/http/vue-query';\n import { CustomRequestOptions } from '@/http/types';`,
|
||||||
requestOptionsType: 'CustomRequestOptions',
|
requestOptionsType: 'CustomRequestOptions',
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import type { CustomRequestOptions } from '@/http/types'
|
||||||
import { http, httpDelete, httpGet, httpPost, httpPut } from '@/http/http'
|
import { http, httpDelete, httpGet, httpPost, httpPut } from '@/http/http'
|
||||||
|
|
||||||
// 桌面端 baseURL
|
// 桌面端 baseURL
|
||||||
const DESKTOP_BASE_URL = 'http://api.xianglexue.com/api/v1'
|
const DESKTOP_BASE_URL = 'https://api.xianglexue.com/api/v1'
|
||||||
|
|
||||||
interface ControllerResponse<T> {
|
interface ControllerResponse<T> {
|
||||||
code?: number
|
code?: number
|
||||||
|
|
|
||||||
|
|
@ -130,9 +130,9 @@ export function getEnvBaseUrl() {
|
||||||
let baseUrl = import.meta.env.VITE_SERVER_BASEURL
|
let baseUrl = import.meta.env.VITE_SERVER_BASEURL
|
||||||
|
|
||||||
// # 有些同学可能需要在微信小程序里面根据 develop、trial、release 分别设置上传地址,参考代码如下。
|
// # 有些同学可能需要在微信小程序里面根据 develop、trial、release 分别设置上传地址,参考代码如下。
|
||||||
const VITE_SERVER_BASEURL__WEIXIN_DEVELOP = 'http://mapi.xianglexue.com/api/v1'
|
const VITE_SERVER_BASEURL__WEIXIN_DEVELOP = 'https://mapi.xianglexue.com/api/v1'
|
||||||
const VITE_SERVER_BASEURL__WEIXIN_TRIAL = 'http://mapi.xianglexue.com/api/v1'
|
const VITE_SERVER_BASEURL__WEIXIN_TRIAL = 'https://mapi.xianglexue.com/api/v1'
|
||||||
const VITE_SERVER_BASEURL__WEIXIN_RELEASE = 'http://mapi.xianglexue.com/api/v1'
|
const VITE_SERVER_BASEURL__WEIXIN_RELEASE = 'https://mapi.xianglexue.com/api/v1'
|
||||||
|
|
||||||
// 微信小程序端环境区分
|
// 微信小程序端环境区分
|
||||||
if (isMpWeixin) {
|
if (isMpWeixin) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue