Open LittleGragon opened 4 years ago
重现步骤:
// src/global.less @import '~antd/es/style/themes/default.less'; html, body, #root { height: 100%; --bg: url('@/assets/bg.jpg'); }
// src/pages/Welcome.less @import '~antd/lib/style/themes/default.less'; .pre { margin: 12px 0; padding: 12px 20px; background: @input-bg; box-shadow: @card-shadow; } :global { .ant-layout { background: var(--bg); } }
重现步骤: