Skip to content

Commit

Permalink
feat: 添加问卷反馈入口
Browse files Browse the repository at this point in the history
  • Loading branch information
FHU-yezi committed Jun 19, 2023
1 parent 04df10d commit 6d6e7a7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/src/components/ErrorFallback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
} from "@mantine/core";
import { BiError } from "react-icons/bi";
import { useLocation } from "wouter-preact";
import SSLink from "./SSLink";

interface Props {
error: Error;
Expand Down Expand Up @@ -36,6 +37,11 @@ export default function ErrorFallback({ error }: Props) {
</Title>
<Text>非常抱歉给您带来不好的体验,您可尝试点击下方按钮刷新页面。</Text>
<Text>如果您多次看到此页面,请向开发者反馈此问题。</Text>
<SSLink
url="https://wenjuan.feishu.cn/m?t=sGzpuZGzUrNi-cbbb"
label="前往反馈表单 >"
isExternal
/>
<Text fz="sm" c="dimmed">
{error.toString()}
</Text>
Expand Down
11 changes: 11 additions & 0 deletions frontend/src/pages/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,17 @@ export default function MainPage() {
<Button variant="default" onClick={() => setLocation("/thanks")}>
鸣谢 &gt;
</Button>
<Button
variant="default"
onClick={
() => window.open(
"https://wenjuan.feishu.cn/m?t=sjQp3W8yUrNi-g37f",
"_blank",
)
}
>
反馈 &gt;
</Button>
<SSTips
label="关于消零派辅助工具"
content="消零派辅助工具已在小工具集 v3 中下线,我们即将发布更强大的工具,敬请期待"
Expand Down

0 comments on commit 6d6e7a7

Please sign in to comment.