Merge branch 'wuxichen' of http://gitea.tashowz.com/tashow/tashow-h5 into qianpw
This commit is contained in:
@@ -50,5 +50,5 @@ console.log(import.meta.env.VITE_BASE_URL, "import.meta.env.VITE_BASE_URL");
|
|||||||
// https://petshy.tashowz.com
|
// https://petshy.tashowz.com
|
||||||
//192.168.1.231:48080
|
//192.168.1.231:48080
|
||||||
// || "http://192.168.1.231:48080"
|
// || "http://192.168.1.231:48080"
|
||||||
const baseURL = import.meta.env.VITE_BASE_URL;
|
const baseURL = import.meta.env.VITE_BASE_URL || "https://petshy.tashowz.com";
|
||||||
export const axiosInstance = new AxiosInstance(baseURL).getInstance();
|
export const axiosInstance = new AxiosInstance(baseURL).getInstance();
|
||||||
|
|||||||
@@ -91,12 +91,13 @@ img {
|
|||||||
|
|
||||||
--adm-font-size-main: var(--adm-font-size-5); */
|
--adm-font-size-main: var(--adm-font-size-5); */
|
||||||
|
|
||||||
--adm-font-family: -apple-system, blinkmacsystemfont, "Helvetica Neue",
|
--adm-font-family: -apple-system, blinkmacsystemfont, "Helvetica Neue", helvetica, segoe ui, arial,
|
||||||
helvetica, segoe ui, arial, roboto, "PingFang SC", "miui",
|
roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
|
||||||
"Hiragino Sans GB", "Microsoft Yahei", sans-serif;
|
|
||||||
}
|
}
|
||||||
.i-icon {
|
.i-icon {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
svg {
|
svg {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useEffect, useRef, useState } from "react";
|
import { useEffect, useRef, useState } from "react";
|
||||||
import { Divider, Image, SpinLoading, Toast } from "antd-mobile";
|
import { Avatar, Divider, Image, Space, SpinLoading, Toast } from "antd-mobile";
|
||||||
import { VoiceIcon } from "@workspace/shared";
|
import { VoiceIcon } from "@workspace/shared";
|
||||||
import dogSvg from "@/assets/translate/dog.svg";
|
import dogSvg from "@/assets/translate/dog.svg";
|
||||||
import catSvg from "@/assets/translate/cat.svg";
|
import catSvg from "@/assets/translate/cat.svg";
|
||||||
@@ -105,14 +105,8 @@ function Index(props: DefinedProps) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const renderAvatar = (type?: "pig" | "cat" | "dog" | "") => {
|
const renderAvatar = (item: Message) => {
|
||||||
if (type === "pig") {
|
return <Avatar src={item.petAvatar || ""} style={{ "--border-radius": "32px" }} />;
|
||||||
<Image src={pigSvg} width={40} height={40} fit="cover" style={{ borderRadius: 32 }} />;
|
|
||||||
}
|
|
||||||
if (type === "cat") {
|
|
||||||
return <Image src={catSvg} width={40} height={40} fit="cover" style={{ borderRadius: 32 }} />;
|
|
||||||
}
|
|
||||||
return <Image src={dogSvg} width={40} height={40} fit="cover" style={{ borderRadius: 32 }} />;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const refreshMessage = async (messageId: number, e: React.MouseEvent) => {
|
const refreshMessage = async (messageId: number, e: React.MouseEvent) => {
|
||||||
@@ -122,11 +116,49 @@ function Index(props: DefinedProps) {
|
|||||||
props.onRefresh(formData, messageId);
|
props.onRefresh(formData, messageId);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const renderTranslateResult = (item: Message) => {
|
||||||
|
if (item.isTranslating) {
|
||||||
|
return (
|
||||||
|
<div className="translate">
|
||||||
|
<SpinLoading color="default" style={{ "--size": "12px" }} />
|
||||||
|
<span>翻译中...</span>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
if (item.transStatus === 1) {
|
||||||
|
return item.transResult?.length ? (
|
||||||
|
<Space justify={"between"} className="translate" style={{ verticalAlign: "middle" }}>
|
||||||
|
<span>{item.transResult}</span>
|
||||||
|
</Space>
|
||||||
|
) : (
|
||||||
|
<Space justify={"between"} className="translate" style={{ verticalAlign: "middle" }}>
|
||||||
|
<span>未知语句</span>
|
||||||
|
<Refresh onClick={(e) => refreshMessage(item.id, e)} size="12" fill="#333" />
|
||||||
|
</Space>
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
return (
|
||||||
|
<Space
|
||||||
|
justify={"between"}
|
||||||
|
className="translate"
|
||||||
|
style={{ verticalAlign: "middle" }}
|
||||||
|
onClick={(e) => {
|
||||||
|
e.stopPropagation();
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<span>翻译失败,请重试</span>
|
||||||
|
<Refresh onClick={(e) => refreshMessage(item.id, e)} size="12" fill="#333" />
|
||||||
|
</Space>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="message">
|
<div className="message">
|
||||||
{data.map((item, index) => (
|
{data.map((item, index) => (
|
||||||
<div className="item" key={index} onClick={() => playAudio(item.id, item.contentText)}>
|
<div className="item" key={index} onClick={() => playAudio(item.id, item.contentText)}>
|
||||||
{renderAvatar(item.petType)}
|
{renderAvatar(item)}
|
||||||
|
|
||||||
<div className="rig">
|
<div className="rig">
|
||||||
<div>
|
<div>
|
||||||
@@ -141,38 +173,37 @@ function Index(props: DefinedProps) {
|
|||||||
/>
|
/>
|
||||||
<div className="time">{item.contentDuration}''</div>
|
<div className="time">{item.contentDuration}''</div>
|
||||||
</div>
|
</div>
|
||||||
{item.isTranslating ? (
|
{renderTranslateResult(item)}
|
||||||
|
{/* {item.isTranslating ? (
|
||||||
<div className="translate">
|
<div className="translate">
|
||||||
<SpinLoading color="default" style={{ "--size": "12px" }} />
|
<SpinLoading color="default" style={{ "--size": "12px" }} />
|
||||||
<span>翻译中...</span>
|
<span>翻译中...</span>
|
||||||
</div>
|
</div>
|
||||||
) : item.transStatus === 1 ? (
|
) : item.transStatus === 1 ? (
|
||||||
<div className="translate">{item.transResult ?? "暂无翻译结果"}</div>
|
|
||||||
) : (
|
|
||||||
<div className="translate">
|
<div className="translate">
|
||||||
<span> 翻译失败,请重试</span>
|
{item.transResult?.length ? (
|
||||||
<Refresh onClick={(e) => refreshMessage(item.id, e)} size="12" fill="#333" />
|
item.transResult
|
||||||
|
) : (
|
||||||
|
<Space justify={"between"}>
|
||||||
|
<span>未知语句</span>
|
||||||
|
<Refresh onClick={(e) => refreshMessage(item.id, e)} size="12" fill="#333" />
|
||||||
|
</Space>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
) : (
|
||||||
|
<Space justify={"between"} className="translate">
|
||||||
|
<span>翻译失败,请重试</span>
|
||||||
|
<Refresh onClick={(e) => refreshMessage(item.id, e)} size="12" fill="#333" />
|
||||||
|
</Space>
|
||||||
|
// <div className="translate">
|
||||||
|
// <span> 翻译失败,请重试</span>
|
||||||
|
// <Refresh onClick={(e) => refreshMessage(item.id, e)} size="12" fill="#333" />
|
||||||
|
// </div>
|
||||||
|
)} */}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
|
||||||
<div className="item">
|
|
||||||
<div className="avatar"></div>
|
|
||||||
<div className="rig">
|
|
||||||
<div>
|
|
||||||
<span className="name">生无可恋喵</span>
|
|
||||||
<Divider direction="vertical" style={{ margin: "0px 8px" }} />
|
|
||||||
<span className="">15:00</span>
|
|
||||||
</div>
|
|
||||||
<div className="voice-container">
|
|
||||||
<VoiceIcon isPlaying={false} />
|
|
||||||
<div className="tips">{isRecording ? "录制中..." : "轻点麦克风录制"}</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div style={{ height: "130px", width: "100%" }}></div>
|
<div style={{ height: "130px", width: "100%" }}></div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React, { useCallback, useEffect, useRef, useState } from "react";
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
||||||
import { AudioRecorder, useAudioRecorder } from "react-audio-voice-recorder";
|
import { AudioRecorder, useAudioRecorder } from "react-audio-voice-recorder";
|
||||||
import { Button, Dialog, Image, ProgressCircle, Toast } from "antd-mobile";
|
import { Button, Dialog, Image, ProgressCircle, Toast } from "antd-mobile";
|
||||||
import microphoneSvg from "@/assets/translate/microphone.svg";
|
import microphoneSvg from "@/assets/translate/microphone.svg";
|
||||||
@@ -35,12 +35,12 @@ function Index(props: DefinedProps) {
|
|||||||
checkMicrophonePermission();
|
checkMicrophonePermission();
|
||||||
}, [hasPermission]);
|
}, [hasPermission]);
|
||||||
|
|
||||||
useEffect(() => {
|
// useEffect(() => {
|
||||||
if (isRecording) {
|
// if (isRecording) {
|
||||||
recorderControls.startRecording();
|
// recorderControls.startRecording();
|
||||||
} else {
|
// } else {
|
||||||
}
|
// }
|
||||||
}, [isRecording]);
|
// }, [isRecording]);
|
||||||
|
|
||||||
//重置状态
|
//重置状态
|
||||||
const onResetRecordingState = () => {
|
const onResetRecordingState = () => {
|
||||||
@@ -66,7 +66,35 @@ function Index(props: DefinedProps) {
|
|||||||
console.error("音效初始化失败:", error);
|
console.error("音效初始化失败:", error);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const renderBtn = useCallback(() => {
|
//开始录音
|
||||||
|
const onStartRecording = () => {
|
||||||
|
isCancelledRef.current = false;
|
||||||
|
if (recordingTimerRef.current) {
|
||||||
|
clearInterval(recordingTimerRef.current);
|
||||||
|
recordingTimerRef.current = undefined;
|
||||||
|
}
|
||||||
|
props.onSetIsRecording(true);
|
||||||
|
recorderControls.startRecording();
|
||||||
|
recordingStartTimeRef.current = Date.now();
|
||||||
|
// 立即开始计时
|
||||||
|
recordingTimerRef.current = setInterval(() => {
|
||||||
|
setRecordingDuration((prev) => prev + 1);
|
||||||
|
}, 1000);
|
||||||
|
};
|
||||||
|
// 使用 useMemo 缓存 Image 组件
|
||||||
|
const MicrophoneImage = useMemo(
|
||||||
|
() => (
|
||||||
|
<Image
|
||||||
|
height={80}
|
||||||
|
width={80}
|
||||||
|
src={microphoneSvg}
|
||||||
|
onClick={onStartRecording}
|
||||||
|
placeholder={<div style={{ width: 80, height: 80 }} />} // 添加占位符
|
||||||
|
/>
|
||||||
|
),
|
||||||
|
[microphoneSvg, onStartRecording]
|
||||||
|
);
|
||||||
|
const renderBtn = () => {
|
||||||
if (!hasPermission) {
|
if (!hasPermission) {
|
||||||
//没有权限
|
//没有权限
|
||||||
return (
|
return (
|
||||||
@@ -95,10 +123,9 @@ function Index(props: DefinedProps) {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
//麦克风状态
|
return MicrophoneImage;
|
||||||
return <Image height={80} width={80} src={microphoneSvg} onClick={onStartRecording} />;
|
|
||||||
}
|
}
|
||||||
}, [hasPermission, isRecording, recordingDuration]);
|
};
|
||||||
const checkMicrophonePermission = useCallback(async () => {
|
const checkMicrophonePermission = useCallback(async () => {
|
||||||
try {
|
try {
|
||||||
if (!navigator.mediaDevices || !navigator.mediaDevices.getUserMedia) {
|
if (!navigator.mediaDevices || !navigator.mediaDevices.getUserMedia) {
|
||||||
@@ -262,21 +289,6 @@ function Index(props: DefinedProps) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
//开始录音
|
|
||||||
const onStartRecording = () => {
|
|
||||||
isCancelledRef.current = false;
|
|
||||||
if (recordingTimerRef.current) {
|
|
||||||
clearInterval(recordingTimerRef.current);
|
|
||||||
recordingTimerRef.current = undefined;
|
|
||||||
}
|
|
||||||
props.onSetIsRecording(true);
|
|
||||||
// recorderControls.startRecording();
|
|
||||||
recordingStartTimeRef.current = Date.now();
|
|
||||||
// 立即开始计时
|
|
||||||
recordingTimerRef.current = setInterval(() => {
|
|
||||||
setRecordingDuration((prev) => prev + 1);
|
|
||||||
}, 1000);
|
|
||||||
};
|
|
||||||
const onStopRecording = useCallback(() => {
|
const onStopRecording = useCallback(() => {
|
||||||
recorderControls.stopRecording();
|
recorderControls.stopRecording();
|
||||||
onResetRecordingState();
|
onResetRecordingState();
|
||||||
@@ -296,27 +308,26 @@ function Index(props: DefinedProps) {
|
|||||||
Toast.show("录音数据无效,请重新录音");
|
Toast.show("录音数据无效,请重新录音");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
const arrayBuffer = await blob.arrayBuffer();
|
||||||
|
const audioContext = new (window.AudioContext || (window as any).webkitAudioContext)();
|
||||||
|
const audioBuffer = await audioContext.decodeAudioData(arrayBuffer);
|
||||||
|
const accurateDuration = audioBuffer.duration;
|
||||||
|
if (accurateDuration < 1) {
|
||||||
|
Toast.show("录音时间太短,请重新录音");
|
||||||
|
return;
|
||||||
|
}
|
||||||
// 转换为 WAV 格式以获得最佳兼容性
|
// 转换为 WAV 格式以获得最佳兼容性
|
||||||
const wavBlob = await convertToWav(blob);
|
const wavBlob = await convertToWav(blob);
|
||||||
const formData: FormData = new FormData();
|
const formData: FormData = new FormData();
|
||||||
formData.append("file", wavBlob, new Date().getTime() + "." + new Date().getTime() + ".wav");
|
formData.append("file", wavBlob, new Date().getTime() + ".wav");
|
||||||
formData.append("dialogId", `${dialogId}`);
|
formData.append("dialogId", `${dialogId}`);
|
||||||
const audioUrl = URL.createObjectURL(blob);
|
const audioUrl = URL.createObjectURL(blob);
|
||||||
const audio = new Audio();
|
const audio = new Audio();
|
||||||
audio.src = audioUrl;
|
audio.src = audioUrl;
|
||||||
// 计算实际录音时长
|
playSound(sendSoundRef);
|
||||||
|
const contentDuration = Math.round(accurateDuration);
|
||||||
audio.addEventListener("loadedmetadata", () => {
|
formData.append("contentDuration", `${contentDuration}`);
|
||||||
if (audio.duration < 1) {
|
props.onRecordingComplete?.(audioUrl, contentDuration, formData);
|
||||||
Toast.show("录音时间太短,请重新录音");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// alert(audio.duration);
|
|
||||||
playSound(sendSoundRef);
|
|
||||||
const contentDuration = Math.floor(audio.duration);
|
|
||||||
formData.append("contentDuration", `${contentDuration}`);
|
|
||||||
props.onRecordingComplete?.(audioUrl, contentDuration, formData);
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
[isCancelledRef, isRecording, sendSoundRef]
|
[isCancelledRef, isRecording, sendSoundRef]
|
||||||
);
|
);
|
||||||
@@ -338,9 +349,6 @@ function Index(props: DefinedProps) {
|
|||||||
autoGainControl: true,
|
autoGainControl: true,
|
||||||
}}
|
}}
|
||||||
showVisualizer={false}
|
showVisualizer={false}
|
||||||
mediaRecorderOptions={{
|
|
||||||
mimeType: "audio/webm",
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
<div className={` voice-record`}>{renderBtn()}</div>
|
<div className={` voice-record`}>{renderBtn()}</div>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import { useUploadAudio } from "@/api/translate";
|
|||||||
import dogSvg from "@/assets/translate/dog.svg";
|
import dogSvg from "@/assets/translate/dog.svg";
|
||||||
import catSvg from "@/assets/translate/cat.svg";
|
import catSvg from "@/assets/translate/cat.svg";
|
||||||
import pigSvg from "@/assets/translate/pig.svg";
|
import pigSvg from "@/assets/translate/pig.svg";
|
||||||
import { MoreTwo } from "@icon-park/react";
|
import { MoreTwo, Petrol } from "@icon-park/react";
|
||||||
import SearchCom from "./component/search";
|
import SearchCom from "./component/search";
|
||||||
interface DefinedProps {
|
interface DefinedProps {
|
||||||
searchVisible: boolean;
|
searchVisible: boolean;
|
||||||
@@ -41,15 +41,12 @@ function Index(props: DefinedProps) {
|
|||||||
fetchInitialMessages();
|
fetchInitialMessages();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|
||||||
// 添加初始化数据的逻辑
|
// 添加初始化数据的逻辑
|
||||||
const fetchInitialMessages = async () => {
|
const fetchInitialMessages = async () => {
|
||||||
try {
|
try {
|
||||||
// 这里替换为实际的API调用
|
// 这里替换为实际的API调用
|
||||||
// const response = await fetch('/api/messages');
|
// const response = await fetch('/api/messages');
|
||||||
const response = await getDialog();
|
const response = await getDialog();
|
||||||
// console.log(response);
|
|
||||||
|
|
||||||
const initialMessages: Message[] = response.data?.data?.messages || [];
|
const initialMessages: Message[] = response.data?.data?.messages || [];
|
||||||
|
|
||||||
setDialogId(response.data?.data?.dialogId);
|
setDialogId(response.data?.data?.dialogId);
|
||||||
@@ -65,11 +62,10 @@ function Index(props: DefinedProps) {
|
|||||||
//完成录音
|
//完成录音
|
||||||
const onRecordingComplete = useCallback(
|
const onRecordingComplete = useCallback(
|
||||||
(audioUrl: string, actualDuration: number, formData: FormData) => {
|
(audioUrl: string, actualDuration: number, formData: FormData) => {
|
||||||
console.log(audioUrl, "audioUrl")
|
console.log(audioUrl, "audioUrl");
|
||||||
const newMessage: Message = {
|
const newMessage: Message = {
|
||||||
id: Date.now(),
|
id: Date.now(),
|
||||||
contentText: audioUrl,
|
contentText: audioUrl,
|
||||||
petName: "匹配档案中。。。",
|
|
||||||
contentDuration: actualDuration,
|
contentDuration: actualDuration,
|
||||||
isTranslating: true,
|
isTranslating: true,
|
||||||
};
|
};
|
||||||
@@ -77,7 +73,7 @@ function Index(props: DefinedProps) {
|
|||||||
setMessages((prev) => [...prev, newMessage]);
|
setMessages((prev) => [...prev, newMessage]);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
onTranslateAudio(formData, newMessage.id);
|
onTranslateAudio(formData, newMessage.id);
|
||||||
}, 1000);
|
}, 500);
|
||||||
|
|
||||||
Toast.show("语音已发送");
|
Toast.show("语音已发送");
|
||||||
},
|
},
|
||||||
@@ -90,7 +86,6 @@ function Index(props: DefinedProps) {
|
|||||||
try {
|
try {
|
||||||
const response = await uploadAudio(formData);
|
const response = await uploadAudio(formData);
|
||||||
const translatedData = response.data;
|
const translatedData = response.data;
|
||||||
console.log(translatedData, "translatedText");
|
|
||||||
|
|
||||||
if (translatedData.data.transStatus) {
|
if (translatedData.data.transStatus) {
|
||||||
setMessages((prev) =>
|
setMessages((prev) =>
|
||||||
@@ -111,7 +106,9 @@ function Index(props: DefinedProps) {
|
|||||||
? {
|
? {
|
||||||
...msg,
|
...msg,
|
||||||
id: translatedData.data.id,
|
id: translatedData.data.id,
|
||||||
|
petName: "未知宠物",
|
||||||
transStatus: translatedData.data.transStatus,
|
transStatus: translatedData.data.transStatus,
|
||||||
|
createTime: translatedData.data.createTime,
|
||||||
isTranslating: false,
|
isTranslating: false,
|
||||||
}
|
}
|
||||||
: msg
|
: msg
|
||||||
@@ -183,7 +180,7 @@ function Index(props: DefinedProps) {
|
|||||||
isRecording={isRecording}
|
isRecording={isRecording}
|
||||||
onSetIsRecording={onSetIsRecording}
|
onSetIsRecording={onSetIsRecording}
|
||||||
/>
|
/>
|
||||||
<FloatingMenu menuItems={menuItems} value={currentLanguage} onChange={onLanguage} />
|
{/* <FloatingMenu menuItems={menuItems} value={currentLanguage} onChange={onLanguage} /> */}
|
||||||
<XPopup
|
<XPopup
|
||||||
title="选择翻译语种"
|
title="选择翻译语种"
|
||||||
visible={visible}
|
visible={visible}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ export interface Message {
|
|||||||
id: number;
|
id: number;
|
||||||
petType?: "dog" | "cat" | "pig" | "";
|
petType?: "dog" | "cat" | "pig" | "";
|
||||||
contentText: string;
|
contentText: string;
|
||||||
petName: string; //名字
|
petName?: string; //名字
|
||||||
contentDuration: number; //时长
|
contentDuration: number; //时长
|
||||||
createTime?: number; //时间
|
createTime?: number; //时间
|
||||||
transResult?: string;
|
transResult?: string;
|
||||||
|
|||||||
@@ -7,14 +7,14 @@ export default defineConfig({
|
|||||||
// basicSsl()
|
// basicSsl()
|
||||||
// target: "https://petshy.tashowz.com",
|
// target: "https://petshy.tashowz.com",
|
||||||
// http://192.168.1.231:48080
|
// http://192.168.1.231:48080
|
||||||
plugins: [react()],
|
plugins: [react(), basicSsl()],
|
||||||
server: {
|
server: {
|
||||||
port: 3000,
|
port: 3000,
|
||||||
host: "0.0.0.0",
|
host: "0.0.0.0",
|
||||||
open: true,
|
open: true,
|
||||||
proxy: {
|
proxy: {
|
||||||
"/app-api": {
|
"/app-api": {
|
||||||
target: "http://192.168.1.231:48080",
|
target: "https://petshy.tashowz.com",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user