[+] Use dynamic vue rendering

This commit is contained in:
Hykilpikonna
2021-12-25 00:38:51 -05:00
parent 8d2ea46784
commit 8ea41064c7
3 changed files with 11 additions and 3 deletions
+8 -1
View File
@@ -1,9 +1,16 @@
import {createApp} from 'vue'
import {createApp, h} from 'vue'
import App from './App.vue'
import router from './scripts/router'
import {i18n} from "@/messages";
import '@fortawesome/fontawesome-free/css/all.min.css'
const app = createApp(App).use(router).use(i18n)
.component('Dynamic', {
props: ['template'],
render() {
return h({template: this.template})
}
})
// app.config.performance = true
app.mount('#app')
+2 -2
View File
@@ -1,6 +1,6 @@
<template>
<div id="About" class="markdown-content" v-html="html">
<div id="About" class="markdown-content">
<Dynamic :template="html"></Dynamic>
</div>
</template>
+1
View File
@@ -1,4 +1,5 @@
module.exports = {
runtimeCompiler: true,
devServer: {
disableHostCheck: true
}