bugfix: `vue-json-editor` 替换为 `vue-json-editor-fix-cn`,解决中文输入问题。

pull/276/head
王良 2024-03-26 10:17:58 +08:00
parent 98648fe59f
commit f9e6a19d7b
3 changed files with 4 additions and 3 deletions

View File

@ -43,6 +43,7 @@
"sass-loader": "^10.0.4",
"vue": "^2.6.11",
"vue-json-editor": "^1.4.2",
"vue-json-editor-fix-cn": "^1.4.3",
"vue-router": "^3.4.8"
},
"devDependencies": {

View File

@ -17,7 +17,7 @@
:style="{ height: '100%' }"
>
<a-tab-pane tab="拦截设置" key="1" >
<vue-json-editor style="height:100%;" ref="editor" v-model="targetConfig.intercepts" mode="code" :show-btns="false" :expandedOnStart="true" @json-change="onJsonChange" ></vue-json-editor>
<vue-json-editor style="height:100%;" ref="editor" v-model="targetConfig.intercepts" mode="code" :show-btns="false" :expandedOnStart="true" @json-change="onJsonChange" ></vue-json-editor>
</a-tab-pane>
<a-tab-pane tab="DNS设置" key="2">
<div>
@ -98,7 +98,7 @@
</template>
<script>
import vueJsonEditor from 'vue-json-editor'
import vueJsonEditor from 'vue-json-editor-fix-cn'
import lodash from 'lodash'
import api from '../api'
export default {

View File

@ -217,7 +217,7 @@
</template>
<script>
import vueJsonEditor from 'vue-json-editor'
import vueJsonEditor from 'vue-json-editor-fix-cn'
import Plugin from '../mixins/plugin'
import _ from 'lodash'