Skip to content

Commit 3a6618d

Browse files
author
DESKTOP-939248N\apple
committed
fix: save string not array
1 parent 4c54d63 commit 3a6618d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const observerInit = () => {
7676
window.dispatchEvent(new CustomEvent("newCoCreateCssStyles", {
7777
detail: {
7878
isOnload: false,
79-
styleList: concatCSS
79+
styleList: parsedCSS.join('\r\n')
8080
},
8181
}));
8282
}
@@ -224,7 +224,7 @@ const saveCss = (hasChange) => {
224224
window.dispatchEvent(new CustomEvent("newCoCreateCssStyles", {
225225
detail: {
226226
isOnload: true,
227-
styleList: concatCSS
227+
styleList: concatCSS.join('\r\n')
228228
},
229229
}));
230230
} else {

0 commit comments

Comments
 (0)