- 在 .gitignore 文件中添加 dist.zip,避免打包文件被版本控制 fix(styles): 优化 setTheme 函数的参数处理 - 在 setTheme 函数中增加了对 themeName 类型的检查 - 确保只有在 themeName 是字符串时才使用它,否则使用默认主题 - 这样可以防止非字符串类型的 themeName 导致的错误 |
||
---|---|---|
.. | ||
themes | ||
element-variables.scss | ||
style.css | ||
theme.js |
- 在 .gitignore 文件中添加 dist.zip,避免打包文件被版本控制 fix(styles): 优化 setTheme 函数的参数处理 - 在 setTheme 函数中增加了对 themeName 类型的检查 - 确保只有在 themeName 是字符串时才使用它,否则使用默认主题 - 这样可以防止非字符串类型的 themeName 导致的错误 |
||
---|---|---|
.. | ||
themes | ||
element-variables.scss | ||
style.css | ||
theme.js |