fix: Support markdown to welcome msg
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-card :title="T('Userinfo')" shadow="hover">
|
<el-card :title="T('Userinfo')" shadow="hover">
|
||||||
<el-form class="info-form" ref="form" label-width="120px" label-suffix=":" >
|
<el-form class="info-form" ref="form" label-width="120px" label-suffix=":">
|
||||||
<el-form-item :label="T('Username')">
|
<el-form-item :label="T('Username')">
|
||||||
<div>{{ userStore.username }}</div>
|
<div>{{ userStore.username }}</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import changePwdDialog from '@/components/changePwdDialog.vue'
|
import changePwdDialog from '@/components/changePwdDialog.vue'
|
||||||
import { ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
import { useUserStore } from '@/store/user'
|
import { useUserStore } from '@/store/user'
|
||||||
import { useAppStore } from '@/store/app'
|
import { useAppStore } from '@/store/app'
|
||||||
import { bind, unbind } from '@/api/oauth'
|
import { bind, unbind } from '@/api/oauth'
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
}
|
}
|
||||||
getMyOauth()
|
getMyOauth()
|
||||||
const toBind = async (row) => {
|
const toBind = async (row) => {
|
||||||
const res = await bind({ op: row.op}).catch(_ => false)
|
const res = await bind({ op: row.op }).catch(_ => false)
|
||||||
if (res) {
|
if (res) {
|
||||||
const { code, url } = res.data
|
const { code, url } = res.data
|
||||||
window.open(url)
|
window.open(url)
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const html = marked(appStore.setting.hello)
|
const html = computed(_ => marked(appStore.setting.hello))
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user