From 42faef34194c466f03e29d75a63ae502e4213044 Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Tue, 06 Jan 2026 10:38:46 +0800
Subject: [PATCH] 上一版是10.10的, 这版才是原始源码
---
src/config/index.js | 19 ++++++-------------
1 files changed, 6 insertions(+), 13 deletions(-)
diff --git a/src/config/index.js b/src/config/index.js
index 4460509..44ec738 100644
--- a/src/config/index.js
+++ b/src/config/index.js
@@ -42,39 +42,32 @@
//const ENV_DEV = '9d9d8.com' // 填写前端域名网址
// const ENV_DEV = '127.0.0.1' // dev
-// const ENV_DEV = 'allapi.yanshiz.com' // dev
-const ENV_DEV = 'allapi.sceazy.com' // dev
+// const ENV_DEV = '127.0.0.1:8086' // dev
+const ENV_DEV = 'api.mak-web3.com' // dev
// const ENV_PRO = window.location.hostname // 接口域名跟随 H5
// const ENV_PRO = "127.0.0.1"
-const ENV_PRO = "allapi.sceazy.com"
+// const ENV_PRO = "127.0.0.1:8086"
+const ENV_PRO = "api.mak-web3.com"
// 避免打包出错务必把 app域名的注释要放在在本地ENV_PRO的下面
// const ENV_PRO = 'foilwm.com' // app域名
-
-const ENV_WS = 'wss://usws.yanshiz.com/websocket-server'
let base_url = ''
let ws_url = ''
let host_url = ''
if (import.meta.env.MODE === 'development') {
- // 开发环境使用相对路径,通过 Vite 代理转发,解决跨域问题
host_url = 'http://' + ENV_DEV
- // base_url = '' // 使用空字符串,配合 API_PREFIX='/api' 形成 /api/xxx 路径,走 Vite 代理
- base_url = 'http://' + ENV_DEV // 使用空字符串,配合 API_PREFIX='/api' 形成 /api/xxx 路径,走 Vite 代理
- ws_url = 'ws://' + ENV_DEV + '/api/websocket'
- // ws_url = ENV_WS
+ base_url = 'http://' + ENV_DEV
+ ws_url = 'wss://' + ENV_DEV + '/api/websocket'
} else {
host_url = 'https://' + ENV_PRO
base_url = 'https://' + ENV_PRO
ws_url = `wss://${ENV_PRO}/api/websocket`
- // ws_url = ENV_WS
}
export const BASE_URL = base_url
export const WS_URL = ws_url
export const IMG_PATH = host_url
export const HOST_URL = host_url
-
-export const customerServiceUrl = 'http://wa.me/15133833979' // 客服url
export default {
sliderOptions: {
--
Gitblit v1.9.3