修改搜索公寓全局变量的指向问题

This commit is contained in:
A1300399510
2024-04-29 18:07:03 +08:00
parent 4bc572173b
commit 31075ddd87
21 changed files with 37 additions and 28 deletions

View File

@@ -77,7 +77,9 @@ let setInitial = () => {
//获取搜索数据
let getDataList = (data, type = true) => {
console.log("11414");
// console.log(data,type)
console.log(type);
if (!type) {
//是否继续搜索
seachSelectData.data.tabType !== "apartment" ? (pageList.value = []) : (listApartment.value = [])
@@ -100,6 +102,7 @@ let getDataList = (data, type = true) => {
} else {
seachApi = api.apartment(postData)
}
console.log("555");
seachApi.then(res => {
if (res.code === 200) {
// console.log(res.data)