|
@@ -278,12 +278,15 @@ export default defineComponent({
|
|
|
background="transparent"
|
|
|
clearable={false}
|
|
|
placeholder="请输入关键字"
|
|
|
+ modelValue={musicForms.keyword}
|
|
|
onFocus={() => (data.searchNoticeShow = false)}
|
|
|
onBlur={val => {
|
|
|
- musicForms.keyword = val;
|
|
|
+ musicForms.keyword = val?.trim() || '';
|
|
|
requestAnimationFrame(() => {
|
|
|
requestAnimationFrame(() => {
|
|
|
- data.searchNoticeShow = true;
|
|
|
+ if (musicForms.keyword){
|
|
|
+ data.searchNoticeShow = true;
|
|
|
+ }
|
|
|
});
|
|
|
});
|
|
|
}}
|