bug
This commit is contained in:
		| @@ -8,7 +8,7 @@ | |||||||
|       title="编辑器" |       title="编辑器" | ||||||
|       @onConfirm="onConfirm"> |       @onConfirm="onConfirm"> | ||||||
|       <div> |       <div> | ||||||
|         <b-code-editor v-model="json" lint="dracula"  auto-format height="440px"></b-code-editor> |         <code-editor v-model="json" :lint="true"  auto-format height="440px"></code-editor> | ||||||
|       </div> |       </div> | ||||||
|     </ai-dialog> |     </ai-dialog> | ||||||
|     <div class="layout-config__group" v-if="options.monitorType !== 'hik' && options.monitorType !== 'dahua'"> |     <div class="layout-config__group" v-if="options.monitorType !== 'hik' && options.monitorType !== 'dahua'"> | ||||||
| @@ -117,13 +117,10 @@ | |||||||
| </template> | </template> | ||||||
|  |  | ||||||
| <script> | <script> | ||||||
|   import Vue from 'vue' |  | ||||||
|   import vueJsonEditor from 'vue-json-editor' |   import vueJsonEditor from 'vue-json-editor' | ||||||
|   import CodeEditor from 'bin-code-editor' |   import { CodeEditor } from 'bin-code-editor' | ||||||
|   import 'bin-code-editor/lib/styles/index.css' |   import 'bin-code-editor/lib/styles/index.css' | ||||||
|  |  | ||||||
|   Vue.use(CodeEditor) |  | ||||||
|  |  | ||||||
|   export default { |   export default { | ||||||
|     name: 'dataCofing', |     name: 'dataCofing', | ||||||
|  |  | ||||||
| @@ -163,7 +160,8 @@ | |||||||
|     }, |     }, | ||||||
|  |  | ||||||
|     components: { |     components: { | ||||||
|       vueJsonEditor |       vueJsonEditor, | ||||||
|  |       CodeEditor | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
|     mounted () { |     mounted () { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user