Skip to content

Commit b355237

Browse files
authored
Merge pull request surmon-china#44 from brandonxiang/master
fix bug: acompatible with ssr project
2 parents 84e4721 + cab3617 commit b355237

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/codemirror.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
<script>
66
window.CodeMirror = require('codemirror')
7-
require('codemirror/lib/codemirror.css')
87
require('codemirror/mode/meta')
98
export default {
109
name: 'codemirror',
@@ -229,3 +228,6 @@
229228
}
230229
}
231230
</script>
231+
<style>
232+
@import 'codemirror/lib/codemirror.css';
233+
</style>

0 commit comments

Comments
 (0)