fix: prevented duplicate keys when searching by scroll
This commit is contained in:
@@ -4,7 +4,6 @@ import { socket } from '@/utils/socket'
|
||||
const searchResult = ref({})
|
||||
|
||||
function performMainSearch(searchTerm) {
|
||||
console.log('Perform main search')
|
||||
socket.emit('mainSearch', { term: searchTerm })
|
||||
|
||||
socket.on('mainSearch', data => {
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import { ref, computed } from '@vue/composition-api'
|
||||
import { ref } from '@vue/composition-api'
|
||||
import { socket } from '@/utils/socket'
|
||||
|
||||
const result = ref({})
|
||||
|
||||
function performSearch({ term, type, start = 0, nb = 30 }) {
|
||||
console.log('perform search!')
|
||||
socket.emit('search', {
|
||||
term,
|
||||
type,
|
||||
|
||||
Reference in New Issue
Block a user