提交 0baa5d53 编写于 作者: yma16's avatar yma16

perf: 目录规范

上级 734af16e
<template>
<div>
<VueMarkdown
:source="content"
v-highlight
style="width: 100%; text-align: left"
></VueMarkdown>
</div>
</template>
<script>
import VueMarkdown from 'vue-markdown'
export default {
components: {VueMarkdown},
name: 'DesignMarkdown',
props: {
contentSource: undefined
},
data () {
return {
content: ''
}
},
computed: {
propsContent () {
console.log('this')
return this.contentSource
}
},
watch: {
contentSource: {
handler (newVal, oldVal) {
this.content = newVal || ''
},
deep: true,
immediate: true
}
},
mounted () {
console.log('design vuemarkdown')
},
methods: {
}
}
</script>
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</el-alert> </el-alert>
<p style="font-size: 30px">注册</p> <p style="font-size: 30px">注册</p>
<el-avatar <el-avatar
src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png" src="https://yongma16.xyz/staticFile/common/img/logo.png"
></el-avatar> ></el-avatar>
<!-- <svg <!-- <svg
class="icon" class="icon"
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</template> </template>
<script> <script>
import * as echarts from 'echarts' import * as echarts from 'echarts/index'
export default { export default {
name: 'EchartWeather', name: 'EchartWeather',
data () { data () {
......
import { isEmpty } from '@/utils' import { isEmpty } from '@/utils'
import store from '@/store' import store from '@/store'
const Article = () => import('@/components/Article')
const Login = () => import('@/components/Login') const Login = () => import('@/components/user/Login')
const Register = () => import('@/components/Register') const Register = () => import('@/components/user/Register')
const Onlinewebsocket = () => import('@/components/Onlinewebsocket') const Onlinewebsocket = () => import('@/components/websocket/Onlinewebsocket')
const Home = () => import('@/components/Home') const Home = () => import('@/components/Home')
const Bilicom = () => import('@/components/Bilicom') const Bilicom = () => import('@/components/Bilicom')
const Mavoneditor = () => import('@/components/Mavoneditor') const Mavoneditor = () => import('@/components/Mavoneditor')
const GrilShow = () => import('@/components/GrilShow') const GrilShow = () => import('@/components/GrilShow')
const Csslearn = () => import('@/components/Csslearn')
const Csslearn = () => import('@/views/cssView/Csslearn')
const Article = () => import('@/views/article/Article')
const defaultRoutes = [ const defaultRoutes = [
{ {
path: '/', path: '/',
......
...@@ -127,11 +127,11 @@ ...@@ -127,11 +127,11 @@
<div class="block" style="line-height: 20px"> <div class="block" style="line-height: 20px">
<h1>{{ the_title }}</h1> <h1>{{ the_title }}</h1>
<div class="markdown-body" style="text-align: left"> <div class="markdown-body" style="text-align: left">
<VueMarkdown <DesignMarkdown
:source="md_data[index_page]" :contentSource="md_data[index_page]"
v-highlight v-highlight
style="width: 100%; text-align: left" style="width: 100%; text-align: left"
></VueMarkdown> ></DesignMarkdown>
</div> </div>
</div> </div>
</el-card> </el-card>
...@@ -248,12 +248,12 @@ ...@@ -248,12 +248,12 @@
<script> <script>
import Email from '@/components/email/Email' import Email from '@/components/email/Email'
import VueMarkdown from 'vue-markdown' import DesignMarkdown from '@/components/markdown/DesignMarkdown'
import ArticleComment from '@/comment/ArticleComment' import ArticleComment from '@/components/comment/ArticleComment'
import EchartWeather from '@/weather/EchartWeather' import EchartWeather from '@/components/weather/EchartWeather'
export default { export default {
components: { components: {
VueMarkdown, // 显示markdown的组件 DesignMarkdown, // 显示markdown的组件
ArticleComment, // 子组件评论 ArticleComment, // 子组件评论
EchartWeather, // 天气 EchartWeather, // 天气
Email Email
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册