feat: Support markdown to welcome msg

This commit is contained in:
lejianwen
2024-12-25 19:21:14 +08:00
parent f589d923e9
commit 21254e2b2c
3 changed files with 1072 additions and 7 deletions
+5 -1
View File
@@ -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">