feat: UI: MailBox add reply button (#187)

This commit is contained in:
Dream Hunter
2024-05-02 20:32:15 +08:00
committed by GitHub
parent 042736b67f
commit 6e02e9b20b
6 changed files with 90 additions and 43 deletions

View File

@@ -29,7 +29,15 @@ export const useGlobalState = createGlobalState(
source_prefix: '',
name: '',
}
})
});
const sendMailModel = useStorage('sendMailModel', {
fromName: "",
toName: "",
toMail: "",
subject: "",
contentType: 'text',
content: "",
});
const showAuth = ref(false);
const showPassword = ref(false);
const showAdminAuth = ref(false);
@@ -37,7 +45,6 @@ export const useGlobalState = createGlobalState(
const adminAuth = useStorage('adminAuth', '');
const jwt = useStorage('jwt', '');
const localeCache = useStorage('locale', 'zh');
const themeSwitch = useStorage('themeSwitch', false);
const adminTab = ref("account");
const adminMailTabAddress = ref("");
const adminSendBoxTabAddress = ref("");
@@ -48,13 +55,13 @@ export const useGlobalState = createGlobalState(
toggleDark,
loading,
settings,
sendMailModel,
openSettings,
showAuth,
showPassword,
auth,
jwt,
localeCache,
themeSwitch,
adminAuth,
showAdminAuth,
adminTab,