mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
fix: prettyPrint function move
This commit is contained in:
parent
6bce5947f0
commit
1740ac1cc8
@ -84,7 +84,7 @@
|
||||
<script src="libs/scripts/codemirror/format.js"></script>
|
||||
|
||||
<script src="libs/scripts/markdown.min.js"></script>
|
||||
<!-- <script src="libs/scripts/prettify.min.js"></script> -->
|
||||
<script src="libs/scripts/prettify.min.js"></script>
|
||||
<!-- <script src="libs/scripts/index.js"></script> -->
|
||||
<script src="libs/scripts/jquery.min.js"></script>
|
||||
<script src="libs/scripts/closebrackets.js"></script>
|
||||
@ -97,6 +97,9 @@
|
||||
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>
|
||||
</body>
|
||||
|
||||
|
@ -135,7 +135,6 @@ import {
|
||||
} from './scripts/util'
|
||||
import DEFAULT_CONTENT from './scripts/default-content'
|
||||
import DEFAULT_CSS_CONTENT from './scripts/themes/default-theme-css'
|
||||
// import { prettyPrint } from 'prettify'
|
||||
require('codemirror/mode/javascript/javascript')
|
||||
export default {
|
||||
data () {
|
||||
@ -485,11 +484,6 @@ export default {
|
||||
type: 'success'
|
||||
})
|
||||
}
|
||||
},
|
||||
updated () {
|
||||
this.$nextTick(() => {
|
||||
// prettyPrint()
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user