feat: add COPYRIGHT (#183)

This commit is contained in:
Dream Hunter
2024-04-30 22:58:28 +08:00
committed by GitHub
parent 64bcf7d019
commit 32ce446a27
9 changed files with 59 additions and 6 deletions

View File

@@ -49,7 +49,7 @@ const apiFetch = async (path, options = {}) => {
const getOpenSettings = async (message) => {
try {
const res = await api.fetch("/open_api/settings");
openSettings.value = {
Object.assign(openSettings.value, {
prefix: res["prefix"] || "",
needAuth: res["needAuth"] || false,
domains: res["domains"].map((domain) => {
@@ -62,7 +62,8 @@ const getOpenSettings = async (message) => {
enableUserCreateEmail: res["enableUserCreateEmail"] || false,
enableUserDeleteEmail: res["enableUserDeleteEmail"] || false,
enableAutoReply: res["enableAutoReply"] || false,
};
copyright: res["copyright"] || openSettings.value.copyright,
});
if (openSettings.value.needAuth) {
showAuth.value = true;
}