search button fix
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
name="search"
|
||||
placeholder="Výraz"
|
||||
/>
|
||||
<button type="submit" class="absolute right-0 top-0 mt-5 mr-4" v-on:click="search_dict">
|
||||
<button type="submit" class="absolute right-0 top-0 mt-5 mr-4" v-on:click="click_search">
|
||||
<svg
|
||||
class="text-gray-600 h-4 w-4 fill-current"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
@@ -168,9 +168,14 @@ export default {
|
||||
console.log(data.index)
|
||||
console.log(data.tab)
|
||||
},
|
||||
click_search(){
|
||||
let t = this.$refs.searchstr.value;
|
||||
console.log("term=",t);
|
||||
this.search_dict(t);
|
||||
},
|
||||
search_dict(term) {
|
||||
if (term == null) term = this.$refs.searchstr.value;
|
||||
console.log(this.$refs.searchstr.value)
|
||||
console.log('elem',this.$refs.searchstr.value)
|
||||
console.log('SEARCH')
|
||||
var that = this
|
||||
axios
|
||||
|
||||
Reference in New Issue
Block a user