mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
code fix
This commit is contained in:
parent
9a42d070eb
commit
2cd6eb54c8
@ -1,5 +1,5 @@
|
|||||||
[*.{js,jsx,ts,tsx,vue}]
|
[*.{js,jsx,ts,tsx,vue}]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 4
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
46
src/App.vue
46
src/App.vue
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<loading v-if="loading" />
|
<loading v-if="loading" />
|
||||||
<codemirror-editor v-else/>
|
<codemirror-editor v-else />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -8,30 +8,30 @@ import Loading from './components/Loading'
|
|||||||
import CodemirrorEditor from './components/CodemirrorEditor'
|
import CodemirrorEditor from './components/CodemirrorEditor'
|
||||||
import prettyPrint from 'prettify'
|
import prettyPrint from 'prettify'
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
components: {
|
components: {
|
||||||
Loading,
|
Loading,
|
||||||
CodemirrorEditor
|
CodemirrorEditor
|
||||||
},
|
},
|
||||||
data () {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: true
|
loading: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.loading = false
|
||||||
|
}, 200)
|
||||||
|
window.console &&
|
||||||
|
window.console.log &&
|
||||||
|
(console.log("Think big, train fast, learn deep. See https://github.com/yanglbme"))
|
||||||
|
setTimeout(() => {
|
||||||
|
// document.body.addEventListener('load', prettyPrint())
|
||||||
|
}, 2000)
|
||||||
}
|
}
|
||||||
},
|
|
||||||
mounted () {
|
|
||||||
setTimeout(() => {
|
|
||||||
this.loading = false
|
|
||||||
}, 200)
|
|
||||||
window.console
|
|
||||||
&& window.console.log
|
|
||||||
&& (console.log("Think big, train fast, learn deep. See https://github.com/yanglbme"))
|
|
||||||
setTimeout(() => {
|
|
||||||
// document.body.addEventListener('load', prettyPrint())
|
|
||||||
}, 2000)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user