😎清理代码
This commit is contained in:
parent
17c3fb6a98
commit
d29f5572ad
@ -42,7 +42,7 @@ export async function loadSysInfo(tenantid: number) {
|
|||||||
themeConfig.value.copyright = data.copyright;
|
themeConfig.value.copyright = data.copyright;
|
||||||
// 版本号
|
// 版本号
|
||||||
themeConfig.value.version = data.version;
|
themeConfig.value.version = data.version;
|
||||||
// 轮播图
|
// 轮播图集合
|
||||||
themeConfig.value.carouselFiles = data.carouselFiles;
|
themeConfig.value.carouselFiles = data.carouselFiles;
|
||||||
// 全局主题
|
// 全局主题
|
||||||
themeConfig.value.primary = data.themeColor;
|
themeConfig.value.primary = data.themeColor;
|
||||||
|
|||||||
@ -243,7 +243,6 @@ const saveSysInfo = async () => {
|
|||||||
.then((res) => res.data.result?.map((file: any) => file.id) ?? []);
|
.then((res) => res.data.result?.map((file: any) => file.id) ?? []);
|
||||||
state.sysInfo.carouselFileIds.push(...sysFileIds);
|
state.sysInfo.carouselFileIds.push(...sysFileIds);
|
||||||
}
|
}
|
||||||
console.log(state.sysInfo.carouselFileIds);
|
|
||||||
}
|
}
|
||||||
await getAPI(SysTenantApi).apiSysTenantSaveSysInfoPost(state.sysInfo);
|
await getAPI(SysTenantApi).apiSysTenantSaveSysInfoPost(state.sysInfo);
|
||||||
ElMessage.success('保存成功');
|
ElMessage.success('保存成功');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user