Skip to content

Commit c2dc773

Browse files
committed
✨ 添加navigate风险提示
1 parent 97b28f6 commit c2dc773

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/src/sub/SettingsWindow/about.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ export default function AboutTab() {
1616
useEffect(() => {
1717
(async () => {
1818
if (logoClickCount >= 10) {
19-
const url = await Dialog.input("navigate", "此操作将放弃所有未保存的文件");
19+
const url = await Dialog.input(
20+
"navigate",
21+
"此操作将放弃所有未保存的文件,使用此功能打开其他人给你的网址可能会导致感染计算机病毒!",
22+
{ destructive: true },
23+
);
2024
if (url && url.length > 5) {
2125
window.location.href = url;
2226
}

0 commit comments

Comments
 (0)