perf: 优化首页样式

This commit is contained in:
奔跑的面条
2022-10-08 20:32:36 +08:00
parent d8f8ef032d
commit 0841e632c2
3 changed files with 97 additions and 87 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ export const getStatusStyle = (attr: StatusType) => {
export const getEditCanvasConfigStyle = (canvas: EditCanvasConfigType) => {
// 背景
const computedBackground = canvas.selectColor
? { background: canvas.background || '#000000' }
? { background: canvas.background }
: {
background: `url(${canvas.backgroundImage}) center center / cover no-repeat !important`
}