Skip to content

Commit dc2bc75

Browse files
committed
chore: 优化 loadCSS 加载逻辑
1 parent 07eaee7 commit dc2bc75

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/internal/load-css/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ export function loadCSS(): void {
66
const componentOptions = getCurrentInstance()?.proxy?.$options
77
if (
88
!componentOptions ||
9-
cssMap.has(componentOptions) ||
10-
!componentOptions.__cKitStaticCSS
9+
!componentOptions.__cKitStaticCSS ||
10+
(cssMap.has(componentOptions) &&
11+
cssMap.get(componentOptions) === componentOptions.__cKitStaticCSS)
1112
) {
1213
return
1314
}

0 commit comments

Comments
 (0)