Skip to content

Commit e83f61e

Browse files
committed
fix
1 parent 10d472e commit e83f61e

2 files changed

Lines changed: 4 additions & 11 deletions

File tree

app/components/markdown.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ import {
2121
} from "./artifacts";
2222
import { useChatStore } from "../store";
2323
import { IconButton } from "./button";
24-
import { SAAS_CHAT_URL } from "@/app/constant";
25-
import { trackConversationGuideToCPaymentClick } from "../utils/auth-settings-events";
2624
export function Mermaid(props: { code: string }) {
2725
const ref = useRef<HTMLDivElement>(null);
2826
const [hasError, setHasError] = useState(false);
@@ -281,13 +279,7 @@ function _MarkDownContent(props: { content: string }) {
281279
const href = aProps.href || "";
282280
const isInternal = /^\/#/i.test(href);
283281
const target = isInternal ? "_self" : aProps.target ?? "_blank";
284-
const handleClick = () => {
285-
if (href === SAAS_CHAT_URL) {
286-
trackConversationGuideToCPaymentClick();
287-
}
288-
};
289-
290-
return <a {...aProps} target={target} onClick={handleClick} />;
282+
return <a {...aProps} target={target} />;
291283
},
292284
}}
293285
>

app/locales/cn.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@ import { getClientConfig } from "../config/client";
22
import { SubmitKey } from "../store/config";
33
import { SAAS_CHAT_URL } from "@/app/constant";
44

5+
const SAAS_CHAT_URL_WITH_PARAM = `${SAAS_CHAT_URL}?data=title`;
56
const isApp = !!getClientConfig()?.isApp;
67

78
const cn = {
89
WIP: "该功能仍在开发中……",
910
Error: {
1011
Unauthorized: isApp
1112
? `😆 对话遇到了一些问题,不用慌:
12-
\\ 1️⃣ 想要零配置开箱即用,[点击这里立刻开启对话 🚀](${SAAS_CHAT_URL})
13+
\\ 1️⃣ 想要零配置开箱即用,[点击这里立刻开启对话 🚀](${SAAS_CHAT_URL_WITH_PARAM})
1314
\\ 2️⃣ 如果你想消耗自己的 OpenAI 资源,点击[这里](/#/settings)修改设置 ⚙️`
1415
: `😆 对话遇到了一些问题,不用慌:
15-
\ 1️⃣ 想要零配置开箱即用,[点击这里立刻开启对话 🚀](${SAAS_CHAT_URL})
16+
\ 1️⃣ 想要零配置开箱即用,[点击这里立刻开启对话 🚀](${SAAS_CHAT_URL_WITH_PARAM})
1617
\ 2️⃣ 如果你正在使用私有部署版本,点击[这里](/#/auth)输入访问秘钥 🔑
1718
\ 3️⃣ 如果你想消耗自己的 OpenAI 资源,点击[这里](/#/settings)修改设置 ⚙️
1819
`,

0 commit comments

Comments
 (0)