代码优化

This commit is contained in:
仲么了
2024-01-31 14:14:51 +08:00
parent 5d09ad3459
commit 5bc06899d7
5 changed files with 18 additions and 24 deletions

View File

@@ -205,9 +205,6 @@ if (buttonsFilter.length > 3) {
buttons.value = buttonsFilter
}
const handlerCommand = (item: OptButton) => {
console.log('====================================')
console.log(item)
console.log('====================================')
switch (item.render) {
case 'basicButton':
onButtonClick(item)

View File

@@ -116,7 +116,7 @@ const handlerHeight = () => {
const computedSearchRow = () => {
const headerForm = document.getElementById('header-form') as HTMLElement
const headerFormSecond = document.getElementById('header-form-second') as HTMLElement
if(!headerForm) return
// 判断是否需要折叠
if (headerForm.scrollHeight > 50) {
showUnfoldButton.value = true