diff --git a/src/client/ClientSettings.vue b/src/client/ClientSettings.vue
index b4416e1..367b80c 100644
--- a/src/client/ClientSettings.vue
+++ b/src/client/ClientSettings.vue
@@ -1,115 +1,122 @@
@@ -121,7 +128,10 @@ watch(minimizeOnStart, (newValue) => {
-
+
设置
@@ -135,7 +145,6 @@ watch(minimizeOnStart, (newValue) => {
>
-
{
-
-
{
{{ errorMsg }}
-
-
-
-
+
{
v-model:value="setting.settings.bootAsMinimized"
@update:value="setting.save()"
/>
-
@@ -233,7 +234,6 @@ watch(minimizeOnStart, (newValue) => {
-
{
{
- setting.save()
+ setting.save();
}"
>
启用通知
@@ -275,7 +275,6 @@ watch(minimizeOnStart, (newValue) => {
-
{
-
{
VTsuruEventFetcher Tauri
@@ -336,7 +334,6 @@ watch(minimizeOnStart, (newValue) => {
反馈: 🐧 873260337
-
@@ -352,21 +349,18 @@ watch(minimizeOnStart, (newValue) => {
\ No newline at end of file
diff --git a/src/client/data/initialize.ts b/src/client/data/initialize.ts
index 2500c13..b43ecd1 100644
--- a/src/client/data/initialize.ts
+++ b/src/client/data/initialize.ts
@@ -33,6 +33,12 @@ export async function initAll(isOnBoot: boolean) {
if (setting.settings.bootAsMinimized && !isDev) {
const appWindow = getCurrentWindow();
appWindow.hide();
+ sendNotification({
+ title: "VTsuru.Client",
+ body: '已启动并最小化到托盘',
+ silent: false,
+ extra: { type: 'question-box' },
+ });
}
}
let permissionGranted = await isPermissionGranted();
@@ -113,6 +119,16 @@ export async function initAll(isOnBoot: boolean) {
appWindow.setMinSize(new PhysicalSize(720, 480));
+ // 监听f12事件
+ if (!isDev) {
+ window.addEventListener('keydown', (event) => {
+ if (event.key === 'F12') {
+ event.preventDefault();
+ event.stopPropagation();
+ }
+ });
+ }
+
clientInited.value = true;
}
export function OnClientUnmounted() {
diff --git a/src/data/UpdateNote.ts b/src/data/UpdateNote.ts
index ba4253c..8414d5f 100644
--- a/src/data/UpdateNote.ts
+++ b/src/data/UpdateNote.ts
@@ -14,11 +14,10 @@ export const updateNotes: updateNoteType[] = [
content: [
['比当前所有 EventFetcher 部署方法都更要简单且支持扫码登录的客户端开始测试力, 支持Windows, Linux, MacOS (后两个没测试过'],
[
- '如果对此感兴趣的话可以使用 ',
+ '安装方式: ',
() => h(NButton, {
- text: true, tag: 'a', href: FETCH_API + 'https://github.com/Megghy/vtsuru-fetcher-client/releases/download/app-v0.1.0/vtsuru-fetcher-client_0.1.0_x64-setup.exe', target: '_blank', type: 'info'
- }, () => '这个链接'),
- ' 下载Windows客户端, 其他平台请在下面的客户端 Repo 中的 Release 下载',
+ text: true, tag: 'a', href: 'https://www.wolai.com/carN6qvUm3FErze9Xo53ii', target: '_blank', type: 'info'
+ }, () => '查看介绍'),
],
[
'当前可能存在一些问题, 可以加入秋秋群 873260337 进行反馈, 有功能需求也可以提出'