Skip to content

Commit

Permalink
Update: 优化应用更新体验
Browse files Browse the repository at this point in the history
  • Loading branch information
KiWi233333 committed Feb 12, 2025
1 parent 87a927d commit 6369279
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions components/Chat/MsgForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -783,9 +783,9 @@ onUnmounted(() => {
placement: 'top-start',
}"
@paste.stop="onPaste($event)"
@keydown.exact.enter="onSubmit()"
@keydown.exact.arrow-up="onInputExactKey('ArrowUp')"
@keydown.exact.arrow-down="onInputExactKey('ArrowDown')"
@keydown.exact.enter.stop.prevent="onSubmit()"
@keydown.exact.arrow-up.stop.prevent="onInputExactKey('ArrowUp')"
@keydown.exact.arrow-down.stop.prevent="onInputExactKey('ArrowDown')"
>
<template #label="{ item }">
<div class="h-full w-10em flex items-center pr-1" :title="item.label">
Expand Down
7 changes: 3 additions & 4 deletions init/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,13 @@ export async function userTauriInit() {
if (!isMobileSystem) { // 非移动端才有该功能
restoreStateCurrent(StateFlags.ALL);
}


// msgbox 默认不调整
const msgbox = WebviewWindow.getCurrent();
if (msgbox.label === "msgbox" && useRoute().path !== "/msg") {
const main = WebviewWindow.getCurrent();
if (main.label === "msgbox" && useRoute().path !== "/msg") {
navigateTo("/msg");
return;
}
main.show();

// 监听open_url事件
const unListenOpenUrl = await listen<PayloadType>("open_url", (e) => {
Expand Down

0 comments on commit 6369279

Please sign in to comment.