mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 10:03:08 +02:00
Fix page editor bug
This commit is contained in:
parent
9939e0f9a9
commit
8470a64e6b
1 changed files with 3 additions and 6 deletions
|
@ -56,7 +56,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineAsyncComponent, defineComponent } from 'vue';
|
||||||
import { faPencilAlt, faPlug } from '@fortawesome/free-solid-svg-icons';
|
import { faPencilAlt, faPlug } from '@fortawesome/free-solid-svg-icons';
|
||||||
import { v4 as uuid } from 'uuid';
|
import { v4 as uuid } from 'uuid';
|
||||||
import XContainer from './page-editor.container.vue';
|
import XContainer from './page-editor.container.vue';
|
||||||
|
@ -66,7 +66,8 @@ import * as os from '@/os';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
XContainer, MkTextarea
|
XContainer, MkTextarea,
|
||||||
|
XV: defineAsyncComponent(() => import('./page-editor.script-block.vue')),
|
||||||
},
|
},
|
||||||
|
|
||||||
inject: ['getScriptBlockList'],
|
inject: ['getScriptBlockList'],
|
||||||
|
@ -135,10 +136,6 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
beforeCreate() {
|
|
||||||
this.$options.components.XV = require('./page-editor.script-block.vue').default;
|
|
||||||
},
|
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
if (this.value.value == null) this.value.value = null;
|
if (this.value.value == null) this.value.value = null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue