From e75ecdee609c7cfb3972fec94d109951a015c45d Mon Sep 17 00:00:00 2001 From: lkw199711 Date: Sat, 9 Dec 2023 20:34:30 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=203.6.4=20=E4=BF=AE=E5=A4=8Dssl?= =?UTF-8?q?=E8=AF=81=E4=B9=A6=E8=B7=AF=E5=BE=84=E5=9B=9E=E6=98=BE=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E5=B0=81=E9=9D=A2=E5=8E=8B=E7=BC=A9=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + src/views/serve-setting/index.vue | 29 +++++++++++++++++++++++------ 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 19b7c173..795958be 100755 --- a/README.md +++ b/README.md @@ -349,6 +349,7 @@ Telegram 交流群:https://t.me/+FFgQ7AMIdrg2M2Y1 - 3.6.1 新增任务展示列表. - 3.6.2 支持ssl证书设置. - 3.6.3 存储封面时将进行压缩. + - 3.6.4 修复ssl证书路径回显以及封面压缩大小设置. ## 开发注意事项 diff --git a/src/views/serve-setting/index.vue b/src/views/serve-setting/index.vue index 10b61c64..c5997bc9 100755 --- a/src/views/serve-setting/index.vue +++ b/src/views/serve-setting/index.vue @@ -2,7 +2,7 @@ * @Author: lkw199711 lkw199711@163.com * @Date: 2023-07-16 12:02:34 * @LastEditors: lkw199711 lkw199711@163.com - * @LastEditTime: 2023-12-03 20:14:28 + * @LastEditTime: 2023-12-07 00:04:21 * @FilePath: /smanga/src/views/serve-setting/index.vue --> @@ -66,6 +79,7 @@ const form = reactive({ pem: '', // 证书key文件 key: '', + posterSize: 100, }) /** @@ -84,6 +98,10 @@ async function comfirm_auto_compressl() { serveSettingApi.set('scan', 'autoCompress', form.autoCompress) } +async function confirm_poster_size() { + serveSettingApi.set('poster', 'size', form.posterSize) +} + /** * @description: 设置ssl证书 * @return {*} @@ -101,14 +119,13 @@ async function reset_ssl() { } onMounted(async () => { const res = await serveSettingApi.get(); - form.interval = res.interval - form.autoCompress = res.autoCompress + Object.assign(form, res); })