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
1 changed files with 2 additions and 0 deletions

View File

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