Skip to content

Commit

Permalink
fix(ci): 真·修复ci产生空白PDF内容的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ISNing committed Aug 8, 2024
1 parent f1a946d commit 58bda89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions theme/layoutHelper.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { CSSProperties } from 'vue'
import { theme } from '@unocss/preset-wind'
import { colors } from '@unocss/preset-mini'

interface UnoColors {
[key: string]: UnoColors & {
Expand All @@ -22,7 +22,7 @@ export function handleBackground(background?: string, dim = false): CSSPropertie

const colorParts = background.split('-')

let unboxedColor = theme.colors?.[colorParts[0]]
let unboxedColor = (colors as any)[colorParts[0]]
for (let i = 0; i < colorParts.length && unboxedColor; i++) {
if (typeof unboxedColor === 'string') {
background = unboxedColor
Expand Down
5 changes: 5 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { defineConfig } from 'vite'

export default defineConfig({
optimizeDeps: {
include: [
'@unocss/preset-mini',
],
},
slidev: {
vue: {
template: {
Expand Down

0 comments on commit 58bda89

Please sign in to comment.