(true);
@@ -482,7 +500,13 @@ const loadUpgradeStatus = async () => {
}
};
+const loadSafeStatus = async () => {
+ const res = await getSettingInfo();
+ isSafety.value = res.data.securityEntranceStatus === 'enable';
+};
+
onMounted(() => {
+ loadSafeStatus();
loadUpgradeStatus();
onLoadNetworkOptions();
onLoadIOOptions();
diff --git a/frontend/src/views/log/operation/index.vue b/frontend/src/views/log/operation/index.vue
index d9b84e633..932fc4e7b 100644
--- a/frontend/src/views/log/operation/index.vue
+++ b/frontend/src/views/log/operation/index.vue
@@ -183,6 +183,12 @@ const loadDetail = (log: string) => {
if (log.indexOf('[SessionTimeout]') !== -1) {
return log.replace('[SessionTimeout]', '[' + i18n.global.t('setting.sessionTimeout') + ']');
}
+ if (log.indexOf('SecurityEntranceStatus') !== -1) {
+ return log.replace('[SecurityEntranceStatus]', '[' + i18n.global.t('setting.entrance') + ']');
+ }
+ if (log.indexOf('SecurityEntrance') !== -1) {
+ return log.replace('[SecurityEntrance]', '[' + i18n.global.t('setting.entrance') + ']');
+ }
if (log.indexOf('[ExpirationDays]') !== -1) {
return log.replace('[ExpirationDays]', '[' + i18n.global.t('setting.expirationTime') + ']');
}