mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-06-15 04:20:22 +08:00
feat: add ALWAYS_SHOW_ANNOUNCEMENT option (#663)
This commit is contained in:
@@ -89,7 +89,11 @@ const getOpenSettings = async (message, notification) => {
|
||||
if (openSettings.value.needAuth) {
|
||||
showAuth.value = true;
|
||||
}
|
||||
if (openSettings.value.announcement && openSettings.value.announcement != announcement.value) {
|
||||
if (openSettings.value.announcement
|
||||
&& !openSettings.value.fetched
|
||||
&& (openSettings.value.announcement != announcement.value
|
||||
|| openSettings.value.alwaysShowAnnouncement)
|
||||
) {
|
||||
announcement.value = openSettings.value.announcement;
|
||||
notification.info({
|
||||
content: () => {
|
||||
|
||||
@@ -14,6 +14,7 @@ export const useGlobalState = createGlobalState(
|
||||
fetched: false,
|
||||
title: '',
|
||||
announcement: '',
|
||||
alwaysShowAnnouncement: false,
|
||||
prefix: '',
|
||||
addressRegex: '',
|
||||
needAuth: false,
|
||||
|
||||
Reference in New Issue
Block a user