This commit is contained in:
xiaojunnuo
2024-10-11 03:40:24 +08:00
parent d8d9f9b99c
commit 3b1f3e8a3f
7 changed files with 31 additions and 32 deletions
@@ -170,7 +170,7 @@ export const useSettingStore = defineStore({
},
async loadSiteInfo() {
const isComm = this.isComm;
let siteInfo: SiteInfo;
let siteInfo: SiteInfo = {};
if (isComm) {
siteInfo = await basicApi.getSiteInfo();
if (siteInfo.logo) {
@@ -18,7 +18,7 @@ export async function SettingsGet(key: string) {
}
export async function SettingsSave(key: string, setting: any) {
await request({
return await request({
url: apiPrefix + "/save",
method: "post",
data: {
@@ -29,14 +29,14 @@ export async function SettingsSave(key: string, setting: any) {
}
export async function EmailSettingsGet() {
await request({
return await request({
url: apiPrefix + "/getEmailSettings",
method: "post"
});
}
export async function PublicSettingsSave(setting: any) {
await request({
return await request({
url: apiPrefix + "/savePublicSettings",
method: "post",
data: setting
@@ -44,7 +44,7 @@ export async function PublicSettingsSave(setting: any) {
}
export async function stopOtherUserTimer() {
await request({
return await request({
url: apiPrefix + "/stopOtherUserTimer",
method: "post"
});
@@ -83,7 +83,7 @@ import { SettingKeys } from "./api";
import * as emailApi from "./api.email";
import { notification } from "ant-design-vue";
import { useSettingStore } from "/src/store/modules/settings";
import _ from "lodash-es";
defineOptions({
name: "EmailSetting"
});