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