This commit is contained in:
parent
d40666b878
commit
303b96d8e7
1 changed files with 5 additions and 3 deletions
|
|
@ -4,7 +4,8 @@ import { ref, onMounted, watch } from 'vue'
|
|||
const { t } = useLocale()
|
||||
|
||||
const parsedHtml = ref('')
|
||||
let markedParser: { parse: (text: string) => string | Promise<string>, use: (plugin: unknown) => void } | null = null
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
let markedParser: any = null
|
||||
|
||||
const baseRules = ref<Array<{ id: string, name: string }>>([])
|
||||
const gameRules = ref<Array<{ id: string, name: string, version: string }>>([])
|
||||
|
|
@ -197,14 +198,15 @@ watch(selectedCategory, (newId) => {
|
|||
|
||||
<div class="panel-body">
|
||||
<div
|
||||
v-if="isDocLoading"
|
||||
v-show="isDocLoading"
|
||||
class="loader-container"
|
||||
>
|
||||
<div class="spinner" />
|
||||
<p>{{ t.policies?.loading }}</p>
|
||||
</div>
|
||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||
<div
|
||||
v-else
|
||||
v-show="!isDocLoading"
|
||||
class="markdown-body"
|
||||
v-html="parsedHtml"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue