feat: Support markdown to welcome msg
This commit is contained in:
Generated
+1060
File diff suppressed because it is too large
Load Diff
+7
-6
@@ -8,24 +8,25 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "1.7.4",
|
||||
"clipboard": "2.0.4",
|
||||
"element-plus": "^2.8.2",
|
||||
"fast-sha256": "^1.3.0",
|
||||
"js-cookie": "^3.0.1",
|
||||
"marked": "^15.0.4",
|
||||
"normalize.css": "^8.0.1",
|
||||
"nprogress": "^0.2.0",
|
||||
"pinia": "2.0.3",
|
||||
"vue": "3.2.37",
|
||||
"vue-router": "^4.0.12",
|
||||
"fast-sha256": "^1.3.0",
|
||||
"clipboard": "2.0.4"
|
||||
"vue-router": "^4.0.12"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@element-plus/icons": "0.0.11",
|
||||
"@vitejs/plugin-vue": "^1.9.3",
|
||||
"dotenv": "^10.0.0",
|
||||
"qs": "^6.10.2",
|
||||
"sass-loader": "^12.3.0",
|
||||
"sass": "^1.43.4",
|
||||
"vite": "^2.9.18",
|
||||
"ts-proto": "^1.141.1"
|
||||
"sass-loader": "^12.3.0",
|
||||
"ts-proto": "^1.141.1",
|
||||
"vite": "^2.9.18"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user