Skip to content

Commit

Permalink
fix: spell
Browse files Browse the repository at this point in the history
  • Loading branch information
yy-wow committed Nov 9, 2024
1 parent 53d5e07 commit 7b5ddac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/toolbars/refresh/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default {
const { getCurrentBlock, initBlock } = useBlock()
const { beforeRefresh, refreshMethod, afterRefresh } = getOptions(meta.id)
const refreshResouce = () => {
const refreshResource = () => {
// 清空区块缓存(不能清空组件缓存),保证画布刷新后可以重新注册最新的区块资源
useMaterial().clearBlockResources()
// 因为webcomponents无法重复注册,所以需要刷新内部iframe
Expand All @@ -57,7 +57,7 @@ export default {
const api = await activePlugin(PLUGIN_NAME.BlockManage, true)
await api.refreshBlockData(block)
await initBlock(block, {}, true)
refreshResouce()
refreshResource()
}
const refreshPage = async () => {
Expand All @@ -69,7 +69,7 @@ export default {
const api = await activePlugin(PLUGIN_NAME.AppManage, true)
const page = await api.getPageById(currentPage.id)
await initData(page['page_content'], page)
refreshResouce()
refreshResource()
}
const refresh = async () => {
Expand Down

0 comments on commit 7b5ddac

Please sign in to comment.