feat: 更换域名
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user