From fd49e001ac8e48a7af75d61632b3c516e56220c9 Mon Sep 17 00:00:00 2001
From: xsx <825657193@qq.com>
Date: Sat, 24 Feb 2024 22:53:04 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E5=85=BC=E5=AE=B9=E5=AE=89=E5=8D=93?=
=?UTF-8?q?=E5=92=8Cios?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
im-ui/src/view/Login.vue | 8 ++++++++
im-uniapp/.env.js | 17 +++++------------
im-uniapp/package.json | 36 ------------------------------------
3 files changed, 13 insertions(+), 48 deletions(-)
diff --git a/im-ui/src/view/Login.vue b/im-ui/src/view/Login.vue
index 6ea5f91..6af3ed1 100644
--- a/im-ui/src/view/Login.vue
+++ b/im-ui/src/view/Login.vue
@@ -26,6 +26,14 @@
群聊会话窗口增加邀请、退群、移除、解散提示
+
项目依旧完全开源,可内网部署。如果项目对您有帮助,请帮忙点个star:
diff --git a/im-uniapp/.env.js b/im-uniapp/.env.js
index ade8617..493d3b4 100644
--- a/im-uniapp/.env.js
+++ b/im-uniapp/.env.js
@@ -1,23 +1,16 @@
//设置环境(打包前修改此变量)
-const ENV = "PROD";
-
-const UNI_APP = {
-}
-
+const ENV = "DEV";
+const UNI_APP = {}
if(ENV=="DEV"){
- // 开发环境
- UNI_APP.BASE_URL = "http://192.168.2.67:8888";
- UNI_APP.WS_URL = "ws://192.168.2.67:8878/im";
- // H5 走本地代理避免跨域问题
+ UNI_APP.BASE_URL = "http://127.0.0.1:8888";
+ UNI_APP.WS_URL = "ws://127.0.0.1:8878/im";
+ // H5 走本地代理解决跨域问题
// #ifdef H5
UNI_APP.BASE_URL = "/api";
// #endif
}
-
if(ENV=="PROD"){
- // 生产环境
UNI_APP.BASE_URL = "https://www.boxim.online/api";
UNI_APP.WS_URL = "wss://www.boxim.online:81/im";
}
-
export default UNI_APP
\ No newline at end of file
diff --git a/im-uniapp/package.json b/im-uniapp/package.json
index c149435..bb25321 100644
--- a/im-uniapp/package.json
+++ b/im-uniapp/package.json
@@ -1,42 +1,6 @@
{
"uni-app": {
"scripts": {
- /*
- "dev-h5": {
- "title": "开发环境-H5",
- "browser":"chrome",
- "env": {
- "UNI_PLATFORM": "h5",
- "BASE_URL": "/api",
- "WS_URL": "ws://127.0.0.1:8878/im"
- }
- },
- "dev-wx-mini": {
- "title": "开发环境-微信小程序",
- "env": {
- "UNI_PLATFORM": "mp-weixin",
- "BASE_URL": "http://127.0.0.1:8888",
- "WS_URL": "ws://127.0.0.1:8878/im"
- }
- },
- "prod-h5": {
- "title": "正式环境-H5",
- "browser":"chrome",
- "env": {
- "UNI_PLATFORM": "h5",
- "BASE_URL": "https://www.boxim.online/api",
- "WS_URL": "wss://www.boxim.online:81/im"
- }
- },
- "prod-wx-mini": {
- "title": "正式环境-微信小程序",
- "env": {
- "UNI_PLATFORM": "mp-weixin",
- "BASE_URL": "https://www.boxim.online/api",
- "WS_URL": "wss://www.boxim.online:81/im"
- }
- }
- */
}
}
}
\ No newline at end of file