diff --git a/public/i18n/en.yml b/public/i18n/en.yml
index 7ed8688..32ddf63 100644
--- a/public/i18n/en.yml
+++ b/public/i18n/en.yml
@@ -63,6 +63,7 @@ UPLOAD_AREA: Upload
UPLOAD_VIEW_HINT: Click to open picbeds settings
MANAGE_PAGE: Manage
GALLERY: Gallery
+REFRESH: Refresh
MANUAL: Manual
OPEN_MANUAL_LINK: Manual
OPEN_MANUAL_LINK_HINT: Will open the manual link in your browser, do you want to continue?
diff --git a/public/i18n/zh-CN.yml b/public/i18n/zh-CN.yml
index cdec641..02f9054 100644
--- a/public/i18n/zh-CN.yml
+++ b/public/i18n/zh-CN.yml
@@ -63,6 +63,7 @@ UPLOAD_AREA: 上传
UPLOAD_VIEW_HINT: 点击打开图床设置
MANAGE_PAGE: 管理
GALLERY: 相册
+REFRESH: 刷新
MANUAL: 手册
OPEN_MANUAL_LINK: 前往手册
OPEN_MANUAL_LINK_HINT: 即将打开PicList使用手册网页, 是否继续?
diff --git a/public/i18n/zh-TW.yml b/public/i18n/zh-TW.yml
index a2ab2ce..0dce1e3 100644
--- a/public/i18n/zh-TW.yml
+++ b/public/i18n/zh-TW.yml
@@ -63,6 +63,7 @@ UPLOAD_AREA: 上傳
UPLOAD_VIEW_HINT: 點擊打開圖床設定
MANAGE_PAGE: 管理
GALLERY: 相簿
+REFRESH: 刷新
MANUAL: 手冊
OPEN_MANUAL_LINK: 手冊
OPEN_MANUAL_LINK_HINT: 即將打開PicList使用手冊網頁,是否繼續?
diff --git a/src/main/events/ipcList.ts b/src/main/events/ipcList.ts
index c24b7ac..10584ba 100644
--- a/src/main/events/ipcList.ts
+++ b/src/main/events/ipcList.ts
@@ -335,6 +335,11 @@ export default {
settingWindow.hide()
})
+ ipcMain.on('refreshSettingWindow', () => {
+ const settingWindow = windowManager.get(IWindowList.SETTING_WINDOW)!
+ settingWindow.webContents.reloadIgnoringCache()
+ })
+
// from mini window
ipcMain.on('syncPicBed', () => {
if (windowManager.has(IWindowList.SETTING_WINDOW)) {
diff --git a/src/renderer/pages/Gallery.vue b/src/renderer/pages/Gallery.vue
index 3ee3296..7e4bbde 100644
--- a/src/renderer/pages/Gallery.vue
+++ b/src/renderer/pages/Gallery.vue
@@ -22,7 +22,28 @@
:active-text="$T('SETTINGS_OPEN')"
:inactive-text="$T('SETTINGS_CLOSE')"
@change="handleDeleteCloudFile"
- />
+ />
+
+
+
+
+
+
+
+
@@ -447,7 +468,7 @@ import { PASTE_TEXT, GET_PICBEDS } from '#/events/constants'
import { CheckboxValueType, ElMessageBox, ElNotification, ElMessage } from 'element-plus'
// Element Plus 图标
-import { InfoFilled, Close, CaretBottom, Document, Edit, Delete, CaretTop, Sort } from '@element-plus/icons-vue'
+import { InfoFilled, Close, CaretBottom, Document, Edit, Delete, CaretTop, Sort, Refresh } from '@element-plus/icons-vue'
// Electron 相关
import {
@@ -653,6 +674,10 @@ function handleChooseImage (val: CheckboxValueType, index: number) {
}
}
+function refreshPage () {
+ ipcRenderer.send('refreshSettingWindow')
+}
+
function clearChoosedList () {
isShiftKeyPress.value = false
Object.keys(choosedList).forEach(key => {
diff --git a/src/universal/types/i18n.d.ts b/src/universal/types/i18n.d.ts
index 00b05b8..3ed06f5 100644
--- a/src/universal/types/i18n.d.ts
+++ b/src/universal/types/i18n.d.ts
@@ -61,6 +61,7 @@ interface ILocales {
UPLOAD_VIEW_HINT: string
MANAGE_PAGE: string
GALLERY: string
+ REFRESH: string
MANUAL: string
OPEN_MANUAL_LINK: string
OPEN_MANUAL_LINK_HINT: string