feat: 修复当画布没有内容时控制台报错 (#26)

This commit is contained in:
lhuans 2023-10-12 20:16:14 -07:00 committed by GitHub
parent cd2fd1d822
commit 7b71c38361
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ const setState = (data, clear) => {
Object.assign(state, parseData(data, {}, getContext()) || {})
// 在状态变量合并之后执行访问器中watchEffect为了可以在访问器函数中可以访问其他state变量
Object.entries(data)?.forEach(([key, stateData]) => {
Object.entries(data || {})?.forEach(([key, stateData]) => {
if (isStateAccessor(stateData)) {
const accessor = stateData.accessor
if (accessor?.getter?.value) {

View File

@ -76,7 +76,7 @@
<tiny-tooltip
class="item"
effect="dark"
content="是否需要生成工程的默认配置如package.json等文件。如果选择的为否只会生成页面对应的代码。不会生成一些配置文件。"
content="是否生成工程默认配置如package.json等文件。如选择为否只生成页面对应代码不生成配置文件。"
placement="top"
popper-class="help-tooltip"
>