增加升级完后刷新浏览器或者清空缓存的提示

This commit is contained in:
fangxiang 2023-02-27 09:59:37 +08:00
parent 61b3766012
commit bb438b9eec
3 changed files with 33 additions and 11 deletions

View File

@ -202,7 +202,15 @@ export default defineComponent({
: uploader_rootfs.value; : uploader_rootfs.value;
$q.dialog({ $q.dialog({
title: $t.t("Confirm"), 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: { ok: {
label: $t.t("ok"), label: $t.t("ok"),
noCaps: true, noCaps: true,
@ -246,6 +254,15 @@ export default defineComponent({
position: "top", position: "top",
timeout: 1500, 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(() => { setTimeout(() => {
window.location.reload(); window.location.reload();
}, 2000); }, 2000);

View File

@ -502,5 +502,8 @@ export default {
"reset all": "reset all", "reset all": "reset all",
"Do you confirm the modification": "Do you confirm the modification", "Do you confirm the modification": "Do you confirm the modification",
"Whether to modify the resolution to": "Whether to modify the resolution to", "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" "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)",
}; };

View File

@ -769,5 +769,7 @@ export default {
"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)":
"升级完成后请清空浏览器缓存或者进行硬刷新(Ctrl/Shift + F5 或者 CTRL + SHIFT + R)",
}; };