fix: 修复Select Library切换时未重置nuclideName的问题

This commit is contained in:
Xu Zhimeng 2023-10-09 10:25:01 +08:00
parent 671677a68e
commit d9052d5d7e

View File

@ -16,7 +16,7 @@
<div class="nuclide-library-settings">
<div class="nuclide-library-settings-select">
<title-over-border class="select-library" title="Select Library">
<a-radio-group v-model="model.libraryName" @change="handleSearch">
<a-radio-group v-model="model.libraryName" @change="handleChangeLibraryType">
<a-radio value="UserLibrary">User Library</a-radio>
<a-radio value="FULLLibrary">Full Library</a-radio>
<a-radio value="RelevantLibrary">Relevant Library</a-radio>
@ -275,6 +275,12 @@ export default {
}
},
// Library
handleChangeLibraryType() {
this.model.nuclideName = ''
this.handleSearch()
},
//
handleSearch() {
this.getInfo(true)