diff --git a/projects/translate-h5/src/http/axios-instance.ts b/projects/translate-h5/src/http/axios-instance.ts index 5751940..0935e07 100644 --- a/projects/translate-h5/src/http/axios-instance.ts +++ b/projects/translate-h5/src/http/axios-instance.ts @@ -46,6 +46,9 @@ class AxiosInstance { return this.instance; } } - -const baseURL = import.meta.env.VITE_BASE_URL || "https://petshy.tashowz.com"; +console.log(import.meta.env.VITE_BASE_URL, "import.meta.env.VITE_BASE_URL"); +// https://petshy.tashowz.com +//192.168.1.231:48080 +// || "http://192.168.1.231:48080" +const baseURL = import.meta.env.VITE_BASE_URL; export const axiosInstance = new AxiosInstance(baseURL).getInstance(); diff --git a/projects/translate-h5/src/view/home/translate/component/message/index.tsx b/projects/translate-h5/src/view/home/translate/component/message/index.tsx index 0c04af3..4c673ae 100644 --- a/projects/translate-h5/src/view/home/translate/component/message/index.tsx +++ b/projects/translate-h5/src/view/home/translate/component/message/index.tsx @@ -74,7 +74,7 @@ function Index(props: DefinedProps) { break; default: console.warn("未知错误"); - }; + } Toast.show("音频播放失败"); setIsPlating(false); }; @@ -127,6 +127,7 @@ function Index(props: DefinedProps) { {data.map((item, index) => (