Skip to content

Commit

Permalink
想不明白
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaojianli committed Dec 12, 2024
1 parent 3f69dab commit 9ebb741
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion webui/src/components/changelogViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<a-space direction="vertical" size="mini" style="padding-left: 20px; padding-right: 20px">
<a-typography-title :heading="4">{{ t('changeLogModel.changelog') }} </a-typography-title>
<Markdown
style="max-height: 60vh"
style="height: 60vh; width: 80vh"
:content="endpointStore.latestVersion?.changeLog ?? ''"
use-github-markdown
/>
Expand Down
8 changes: 4 additions & 4 deletions webui/src/components/markdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<iframe
v-if="useGithubMarkdown"
title="changelog"
style="border: none; width: 80vh; height: 60vh"
style="border: none; width: 100%; height: 100%"
:srcdoc="srcDoc"
sandbox=""
/>
<!-- eslint-disable vue/no-v-html -->
<div v-else v-html="md.render(content)"></div>
</template>
<script lang="ts" setup>
import { useDarkStore } from '@/stores/dark';
import md from '@/utils/markdown';
import { computed } from 'vue';
import { useDarkStore } from '@/stores/dark'
import md from '@/utils/markdown'
import { computed } from 'vue'
const darkStore = useDarkStore()
const srcDoc = computed(() => {
Expand Down

0 comments on commit 9ebb741

Please sign in to comment.