bugfix: 规避 vue-json-editor 内容只填充输入框一半的问题.

pull/325/head
王良 2024-07-09 15:29:48 +08:00
parent 176b9c0755
commit c820ee5715
1 changed files with 11 additions and 0 deletions

View File

@ -12,6 +12,7 @@
tab-position="left"
:style="{ height: '100%' }"
v-if="config"
@change="handleTabChange"
>
<a-tab-pane tab="基本设置" key="1">
<div style="padding-right:10px">
@ -416,6 +417,16 @@ export default {
return setInterval(() => {
this.reloadAllSpeedTester()
}, 5000)
},
async handleTabChange (key) {
if (key !== '2' && key !== '4') {
return
}
// vue-json-editor
setTimeout(() => {
window.dispatchEvent(new Event('resize'))
}, 10)
}
}
}