Skip to content

Commit fef4f88

Browse files
authored
fix(huicharts): fix the script error of Huicharts saas theme (#2887)
1 parent 4989269 commit fef4f88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internals/cli/src/commands/build/build-chart-theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const changeTheme = () => {
2828
let content = fs.readFileSync(filePath, 'utf-8')
2929

3030
// 替换 process.env.VAR_NAME 为对应主题的值
31-
content = content.replace(/option\.theme\s=\s'[a-zA-Z_-]+'/g, `option.theme = '${theme}'`)
31+
content = content.replace(/huiChartOption\.theme\s=\s'[a-zA-Z_-]+'/g, `huiChartOption.theme = '${theme}'`)
3232

3333
// 写入新内容到文件
3434
fs.writeFileSync(filePath, content, 'utf-8')

0 commit comments

Comments
 (0)