fix: 手动更新画布key导致表格渲染出错 (#129)

This commit is contained in:
Gene 2023-12-12 22:50:13 -08:00 committed by GitHub
parent 699dc7b77f
commit 8474ddbc68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -680,8 +680,8 @@ export const setState = (state) => {
getRenderer().setState(state)
}
export const setUtils = (utils) => {
getRenderer().setUtils(utils)
export const setUtils = (utils, clear, isForceRefresh) => {
getRenderer().setUtils(utils, clear, isForceRefresh)
}
export const deleteState = (variable) => {

View File

@ -111,11 +111,15 @@ const create = () => {
document.body.remove()
document.body = document.createElement('body')
const app = document.createElement('div')
app.setAttribute('id', 'app')
document.body.appendChild(app)
dispatch('canvasReady', { detail: renderer })
App = Vue.createApp(Main).use(TinyI18nHost).provide(I18nInjectionKey, TinyI18nHost)
App.config.globalProperties.lowcodeConfig = window.parent.TinyGlobalConfig
App.mount(document.body)
App.mount(document.querySelector('#app'))
new ResizeObserver(() => {
dispatch('canvasResize')