feat: Support markdown to welcome msg

Cette révision appartient à :
lejianwen
2024-12-25 19:21:14 +08:00
Parent f589d923e9
révision 21254e2b2c
3 fichiers modifiés avec 1072 ajouts et 7 suppressions
+5 -1
Voir le fichier
@@ -31,7 +31,7 @@
</el-form>
</el-card>
<el-card shadow="hover" style="margin-top: 20px">
<div v-html="appStore.setting.hello"></div>
<div v-html="html"></div>
</el-card>
<changePwdDialog v-model:visible="changePwdVisible"></changePwdDialog>
</div>
@@ -46,6 +46,7 @@
import { myOauth } from '@/api/user'
import { ElMessageBox } from 'element-plus'
import { T } from '@/utils/i18n'
import { marked } from 'marked'
const appStore = useAppStore()
const userStore = useUserStore()
@@ -84,6 +85,9 @@
}
}
const html = marked(appStore.setting.hello)
</script>
<style scoped lang="scss">