fix: ui文件打包报错 #348 (#368)

This commit is contained in:
shaohuzhang1 2024-05-07 10:34:38 +08:00 committed by GitHub
parent f977c33d8e
commit 7d62842b15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,10 +9,10 @@
/>
</template>
<script setup lang="ts">
import { computed, nextTick, ref } from 'vue'
import { computed, ref } from 'vue'
import { MdPreview, config } from 'md-editor-v3'
config({
markdownItConfig(md: markdownit) {
markdownItConfig(md) {
md.renderer.rules.link_open = (tokens, idx, options, env, self) => {
tokens[idx].attrSet('target', '_blank')
return md.renderer.renderToken(tokens, idx, options)