mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 06:20:21 +00:00
[Search] Request result object destruction
This commit is contained in:
1 parent
45197746be
commit
3867635078
1 file changed
+3
-4
@@ -18,7 +18,7 @@ export default {
|
|||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
searchResults: [],
|
searchResults: {},
|
||||||
search: ''
|
search: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -38,9 +38,8 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
updateSearchResults: debounce(async function (search) {
|
updateSearchResults: debounce(async function (search) {
|
||||||
try {
|
try {
|
||||||
this.searchResults = await this.$axios.get_auth(`v1/search?q=${search}`)
|
const { mastertasks, subtasks, teams} = await this.$axios.get_auth(`v1/search?q=${search}`)
|
||||||
// const { mastertasks: mastertasks.data, subtasks: subtasks.data, teams: teams.data}
|
this.searchResults = {mastertasks: mastertasks.data, subtasks: subtasks.data, teams: teams.data}
|
||||||
console.log(this.searchResults)
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.$toast.error(error)
|
this.$toast.error(error)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user