Commit b1457ffe authored by FE-安焕焕's avatar FE-安焕焕 👣

远程搜索无数据匹配显示问题

parent 933bf956
...@@ -712,7 +712,6 @@ export default { ...@@ -712,7 +712,6 @@ export default {
this.Sousuo() this.Sousuo()
}, },
remoteMethod: function(query){ remoteMethod: function(query){
this.options = []
if (query !== '') { if (query !== '') {
this.loading1 = true; this.loading1 = true;
setTimeout(() => { setTimeout(() => {
......
...@@ -1828,18 +1828,14 @@ import {mapState} from 'vuex' ...@@ -1828,18 +1828,14 @@ import {mapState} from 'vuex'
}) })
}) })
}, },
remoteMethod: function(query){ remoteMethod: async function(query){
this.options = []
if (query !== '') { if (query !== '') {
this.loading1 = true; this.loading1 = true;
setTimeout(() => { setTimeout(async () => {
this.loading1 = false; this.loading1 = false;
let list = []
query = query.split('(')[0] query = query.split('(')[0]
findCompanyEmailByKey(query).then(res => { let list = await findCompanyEmailByKey(query)
list = res this.options = list.data.body
this.options = list.data.body
})
}, 200); }, 200);
} else { } else {
this.options = []; this.options = [];
......
...@@ -1800,7 +1800,6 @@ export default { ...@@ -1800,7 +1800,6 @@ export default {
}) })
}, },
remoteMethod: function(query){ remoteMethod: function(query){
this.options = []
if (query !== '') { if (query !== '') {
this.loading1 = true; this.loading1 = true;
setTimeout(() => { setTimeout(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment