feat: 更换域名

This commit is contained in:
2025-09-08 22:33:41 +08:00
parent 89e396fe78
commit 59aad79779
7 changed files with 14 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
NODE_ENV = development
VITE_BASE_URL = https://onefeel.brother7.cn/ingress
VITE_BASE_URL = https://biz.nianxx.cn
VITE_WSS_URL = wss://onefeel.brother7.cn/ingress/agent/ws/chat
VITE_WSS_URL = wss://biz.nianxx.cn/agent/ws/chat

View File

@@ -1,5 +1,5 @@
NODE_ENV = production
VITE_BASE_URL = https://onefeel.brother7.cn/ingress
VITE_BASE_URL = https://biz.nianxx.cn
VITE_WSS_URL = wss://onefeel.brother7.cn/ingress/agent/ws/chat
VITE_WSS_URL = wss://biz.nianxx.cn/agent/ws/chat

View File

@@ -1,5 +1,5 @@
NODE_ENV = staging
VITE_BASE_URL = https://onefeel.brother7.cn/ingress
VITE_BASE_URL = https://biz.nianxx.cn
VITE_WSS_URL = wss://onefeel.brother7.cn/ingress/agent/ws/chat
VITE_WSS_URL = wss://biz.nianxx.cn/agent/ws/chat

View File

@@ -1,6 +1,8 @@
const isProd = true;
export const BASE_URL = "https://onefeel.brother7.cn/ingress"; //'http://8.138.234.141/ingress'
console.log(import.meta.env);
export const BASE_URL = import.meta.env.VITE_BASE_URL;
// socket地址
export const WSS_URL = "wss://onefeel.brother7.cn/ingress/agent/ws/chat";
export const WSS_URL = import.meta.env.VITE_WSS_URL;

View File

@@ -297,7 +297,6 @@ const sendMessageAction = (inputText) => {
if (!inputText.trim()) return;
handleNoHideKeyboard();
currentSessionMessageId = IdUtils.generateMessageId();
// 重置消息状态准备接收新的AI回复
resetMessageState();
@@ -636,6 +635,7 @@ const sendChat = (message, isInstruct = false) => {
const messageType = isInstruct ? 1 : 0;
const messageContent = isInstruct ? commonType : message;
currentSessionMessageId = IdUtils.generateMessageId();
// 重置消息状态,为新消息做准备
resetMessageState();

View File

@@ -96,7 +96,7 @@ const handleAgreeAndGetPhone = () => {
const onLogin = (e) => {
const { code } = e.detail;
console.error("onLogin code", code);
console.info("onLogin code: ", code);
loginAuth()
.then(async () => {
@@ -155,4 +155,4 @@ getPrivacyAgreementData();
<style lang="scss" scoped>
@import "./styles/index.scss";
</style>
</style>

View File

@@ -1,4 +1,4 @@
// import { BASE_URL } from "../../constant/base";
import { BASE_URL } from "../../constant/base";
import { goLogin } from "@/hooks/useGoLogin";
const defaultConfig = {
@@ -8,9 +8,6 @@ const defaultConfig = {
},
};
const BASE_URL = import.meta.env.VITE_BASE_URL;
console.log(import.meta.env);
function request(url, args = {}, method = "POST", customConfig = {}) {
// 判断 url 是否以 http 开头
if (!/^http/.test(url)) {