Skip to content

Commit

Permalink
⚡ Perf: fix memory leak of main page
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuingsmile committed Sep 11, 2023
1 parent 219cbbb commit 5392d9e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/components/InputBoxDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
v-model="showInputBoxVisible"
:title="inputBoxOptions.title || $T('INPUT')"
:modal-append-to-body="false"
append-to-body
>
<el-input
v-model="inputBoxValue"
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/layouts/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
:title="$T('SPONSOR_PICLIST')"
width="70%"
top="10vh"
append-to-body
>
{{ $T('PICLIST_SPONSOR_TEXT') }}
<el-row class="support">
Expand Down Expand Up @@ -198,6 +199,7 @@
:title="$T('PICBED_QRCODE')"
:modal-append-to-body="false"
lock-scroll
append-to-body
>
<el-form
label-position="left"
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/pages/Gallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@
:title="$T('CHANGE_IMAGE_URL')"
width="500px"
:modal-append-to-body="false"
append-to-body
>
<el-input v-model="imgInfo.imgUrl" />
<template #footer>
Expand All @@ -315,6 +316,7 @@
align-center
draggable
destroy-on-close
append-to-body
>
<el-link
:underline="false"
Expand Down
1 change: 1 addition & 0 deletions src/renderer/pages/Plugin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@
c: configName
})"
width="70%"
append-to-body
>
<config-form
:id="configName"
Expand Down
1 change: 1 addition & 0 deletions src/renderer/pages/ShortKey.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
v-model="keyBindingVisible"
:title="$T('SHORTCUT_CHANGE_UPLOAD')"
:modal-append-to-body="false"
append-to-body
>
<el-form
label-position="top"
Expand Down

0 comments on commit 5392d9e

Please sign in to comment.