From bb438b9eec9bdac9a638a38442ca21c78509ae31 Mon Sep 17 00:00:00 2001 From: fangxiang Date: Mon, 27 Feb 2023 09:59:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8D=87=E7=BA=A7=E5=AE=8C?= =?UTF-8?q?=E5=90=8E=E5=88=B7=E6=96=B0=E6=B5=8F=E8=A7=88=E5=99=A8=E6=88=96?= =?UTF-8?q?=E8=80=85=E6=B8=85=E7=A9=BA=E7=BC=93=E5=AD=98=E7=9A=84=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UpgradeDialog.vue | 19 ++++++++++++++++++- src/i18n/en-US/index.ts | 11 +++++++---- src/i18n/zh-CN/index.ts | 14 ++++++++------ 3 files changed, 33 insertions(+), 11 deletions(-) diff --git a/src/components/UpgradeDialog.vue b/src/components/UpgradeDialog.vue index ce50517..6b4c82b 100644 --- a/src/components/UpgradeDialog.vue +++ b/src/components/UpgradeDialog.vue @@ -202,7 +202,15 @@ export default defineComponent({ : uploader_rootfs.value; $q.dialog({ title: $t.t("Confirm"), - message: $t.t("use this file to upgrade") + "?", + message: + $t.t("Confirm") + + $t.t(" ") + + $t.t("use this file to upgrade") + + "?" + + $t.t(" ") + + $t.t( + "after upgrade, please clear browser cache Or refresh hard (Ctrl/Shift + F5 Or Ctrl + Shift + R)" + ), ok: { label: $t.t("ok"), noCaps: true, @@ -246,6 +254,15 @@ export default defineComponent({ position: "top", timeout: 1500, }); + $q.notify({ + type: "positive", + icon: "done", + message: $t.t( + "after upgrade, please clear browser cache Or refresh hard (Ctrl/Shift + F5 Or Ctrl + Shift + R)" + ), + position: "top", + timeout: 3000, + }); setTimeout(() => { window.location.reload(); }, 2000); diff --git a/src/i18n/en-US/index.ts b/src/i18n/en-US/index.ts index 46e9989..d4cfe98 100644 --- a/src/i18n/en-US/index.ts +++ b/src/i18n/en-US/index.ts @@ -499,8 +499,11 @@ export default { "fusion out": "Out", "Please enter the square number": "Please enter the square number", "Change projector layout": "Change projector layout", - "reset all":"reset all", - "Do you confirm the modification":"Do you confirm the modification", - "Whether to modify the resolution to":"Whether to modify the resolution to", - "Whether to change the projector layout to":"Whether to change the projector layout to" + "reset all": "reset all", + "Do you confirm the modification": "Do you confirm the modification", + "Whether to modify the resolution to": "Whether to modify the resolution to", + "Whether to change the projector layout to": + "Whether to change the projector layout to", + "after upgrade, please clear browser cache Or refresh hard (Ctrl/Shift + F5 Or Ctrl + Shift + R)": + "After Upgrade, Please Clear Browser Cache Or Refresh Hard (Ctrl/Shift + F5 Or Ctrl + Shift + R)", }; diff --git a/src/i18n/zh-CN/index.ts b/src/i18n/zh-CN/index.ts index 3a77806..b72021a 100644 --- a/src/i18n/zh-CN/index.ts +++ b/src/i18n/zh-CN/index.ts @@ -764,10 +764,12 @@ export default { product: "产品", normal: "普通", "fusion out": "出", - "Please enter the square number":"请输入平方数", - "Change projector layout":"更改投影机布局", - "reset all":"重置所有", - "Do you confirm the modification":"是否确认修改", - "Whether to modify the resolution to":"是否将分辨率修改到", - "Whether to change the projector layout to":"是否更改投影机布局为" + "Please enter the square number": "请输入平方数", + "Change projector layout": "更改投影机布局", + "reset all": "重置所有", + "Do you confirm the modification": "是否确认修改", + "Whether to modify the resolution to": "是否将分辨率修改到", + "Whether to change the projector layout to": "是否更改投影机布局为", + "after upgrade, please clear browser cache Or refresh hard (Ctrl/Shift + F5 Or Ctrl + Shift + R)": + "升级完成后请清空浏览器缓存或者进行硬刷新(Ctrl/Shift + F5 或者 CTRL + SHIFT + R)", };