fix: code prettify

This commit is contained in:
JimQing 2020-07-11 20:00:47 +08:00
parent 7d833fe5be
commit b8a99e75cf
2 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,8 @@
<link rel="shortcut icon" href="https://imgkr.cn-bj.ufileos.com/f3accc83-b854-4e99-afb5-8a6465e1d84f.png">
<link rel="apple-touch-icon-precomposed"
href="https://imgkr.cn-bj.ufileos.com/f3accc83-b854-4e99-afb5-8a6465e1d84f.png">
<script src="https://cdn.bootcdn.net/ajax/libs/prettify/r224/prettify.min.js"></script>
<link href="https://cdn.bootcdn.net/ajax/libs/prettify/r224/prettify.min.css" rel="stylesheet">
</head>
<body>

View File

@ -216,6 +216,7 @@ export default {
},
onEditorRefresh() {
this.editorRefresh();
setTimeout(()=> PR.prettyPrint(), 0);
},
endCopy() {
this.backLight = false;
@ -232,6 +233,9 @@ export default {
},
mounted() {
this.leftAndRightScroll();
setTimeout(() => {
PR.prettyPrint()
}, 300);
}
}