1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-01 07:35:57 +09:00

Fix page editor bug

This commit is contained in:
syuilo 2020-10-18 12:30:54 +09:00
parent 9939e0f9a9
commit 8470a64e6b

View File

@ -56,7 +56,7 @@
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { defineAsyncComponent, defineComponent } from 'vue';
import { faPencilAlt, faPlug } from '@fortawesome/free-solid-svg-icons';
import { v4 as uuid } from 'uuid';
import XContainer from './page-editor.container.vue';
@ -66,7 +66,8 @@ import * as os from '@/os';
export default defineComponent({
components: {
XContainer, MkTextarea
XContainer, MkTextarea,
XV: defineAsyncComponent(() => import('./page-editor.script-block.vue')),
},
inject: ['getScriptBlockList'],
@ -135,10 +136,6 @@ export default defineComponent({
}
},
beforeCreate() {
this.$options.components.XV = require('./page-editor.script-block.vue').default;
},
created() {
if (this.value.value == null) this.value.value = null;