@@ -1100,14 +1100,16 @@ const search = (keyword: string) => {
})
.then((res: any) => {
if (Array.isArray(res.data) && res.data.length) {
- qcList.value = res.data.map((i: any) => {
- return {
- ...i,
- isSearch: true,
- }
- })
+ qcList.value.concat(
+ res.data.map((i: any) => {
+ return {
+ ...i,
+ isSearch: true,
+ }
+ }),
+ )
} else {
- qcList.value = []
+ // qcList.value = []
ElMessage.warning('No Data Found')
}