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

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

parent 933bf956
......@@ -712,7 +712,6 @@ export default {
this.Sousuo()
},
remoteMethod: function(query){
this.options = []
if (query !== '') {
this.loading1 = true;
setTimeout(() => {
......
......@@ -1828,18 +1828,14 @@ import {mapState} from 'vuex'
})
})
},
remoteMethod: function(query){
this.options = []
remoteMethod: async function(query){
if (query !== '') {
this.loading1 = true;
setTimeout(() => {
setTimeout(async () => {
this.loading1 = false;
let list = []
query = query.split('(')[0]
findCompanyEmailByKey(query).then(res => {
list = res
this.options = list.data.body
})
let list = await findCompanyEmailByKey(query)
this.options = list.data.body
}, 200);
} else {
this.options = [];
......
......@@ -1800,7 +1800,6 @@ export default {
})
},
remoteMethod: function(query){
this.options = []
if (query !== '') {
this.loading1 = true;
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