fix: optimize search reset and format in marketplace (#392)

This commit is contained in:
Chen Ziyan 2024-04-18 17:27:56 +08:00 committed by GitHub
parent f001290658
commit 54c236bacf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -78,6 +78,7 @@ limitations under the License. -->
function searchMenus() { function searchMenus() {
if (!searchText.value) { if (!searchText.value) {
menus.value = appStore.allMenus; menus.value = appStore.allMenus;
currentItems.value = menus.value[0] || {};
return; return;
} }
@ -149,6 +150,7 @@ limitations under the License. -->
border-right: 1px solid var(--sw-marketplace-border); border-right: 1px solid var(--sw-marketplace-border);
align-content: flex-start; align-content: flex-start;
height: 100%; height: 100%;
width: 100%;
overflow: auto; overflow: auto;
} }