diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 073cc0d16..4dcc85d7f 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -1052,6 +1052,7 @@ const message = { safe: 'Security', entrance: 'Entrance', + showEntrance: 'Enable Home Page Notification Not Enabled', entranceHelper: 'Enabling secure entry will only allow logging in to the panel through specified secure entry.', entranceError: 'Please enter a secure login entry point of 6-10 characters, only numbers or letters are supported.', diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index 18f10ca8f..290fdfd58 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -1052,6 +1052,7 @@ const message = { safe: '安全', entrance: '安全入口', + showEntrance: '啟用概覽頁未開啟提醒', entranceHelper: '開啟安全入口後只能通過指定安全入口登錄面板', entranceError: '請輸入 6-10 位安全登錄入口,僅支持輸入數字或字母', entranceInputHelper: '安全入口設置為空時,則取消安全入口', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 21e214274..c01a8b66d 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -1052,6 +1052,7 @@ const message = { safe: '安全', entrance: '安全入口', + showEntrance: '启用概览页未开启提醒', entranceHelper: '开启安全入口后只能通过指定安全入口登录面板', entranceError: '请输入 6-10 位安全登录入口,仅支持输入数字或字母', entranceInputHelper: '安全入口设置为空时,则取消安全入口', diff --git a/frontend/src/store/index.ts b/frontend/src/store/index.ts index 212e8ac29..ef2f89bc8 100644 --- a/frontend/src/store/index.ts +++ b/frontend/src/store/index.ts @@ -28,6 +28,7 @@ export const GlobalStore = defineStore({ device: DeviceType.Desktop, lastFilePath: '', currentDB: '', + showEntranceWarn: true, }), getters: {}, actions: { @@ -68,6 +69,9 @@ export const GlobalStore = defineStore({ setCurrentDB(name: string) { this.currentDB = name; }, + setShowEntranceWarn(show: boolean) { + this.showEntranceWarn = show; + }, }, persist: piniaPersistConfig('GlobalState'), }); diff --git a/frontend/src/store/interface/index.ts b/frontend/src/store/interface/index.ts index 97d656750..6975421ce 100644 --- a/frontend/src/store/interface/index.ts +++ b/frontend/src/store/interface/index.ts @@ -23,6 +23,7 @@ export interface GlobalState { device: DeviceType; lastFilePath: string; currentDB: string; + showEntranceWarn: boolean; } export interface MenuState { diff --git a/frontend/src/views/home/index.vue b/frontend/src/views/home/index.vue index 7a300d9da..7b4d441b5 100644 --- a/frontend/src/views/home/index.vue +++ b/frontend/src/views/home/index.vue @@ -8,7 +8,12 @@ }, ]" /> - +