no message

This commit is contained in:
2025-09-10 10:31:25 +08:00
parent 914c5f7ba4
commit d4a6170a7a
2 changed files with 10 additions and 6 deletions
+7 -3
View File
@@ -485,7 +485,7 @@ export default {
}); });
}, },
onBlur() { onBlur() {
this.loadData(); this.loadData(1);
}, },
searchFun(val) { searchFun(val) {
console.log("searchFun", val); console.log("searchFun", val);
@@ -532,10 +532,14 @@ export default {
return resultM; return resultM;
}, },
// 加载数据的方法 // 加载数据的方法
async loadData() { async loadData(type = null) {
console.log("加载数据的方法"); console.log("加载数据的方法",type);
if (this.loading) return; // 如果正在加载,则不重复加载 if (this.loading) return; // 如果正在加载,则不重复加载
this.loading = true; // 设置加载状态为true this.loading = true; // 设置加载状态为true
if(type){
this.form.page = 1;
this.orderList = [];
}
try { try {
// 模拟异步获取数据,实际应用中应该替换为你的数据获取逻辑,例如API调用 // 模拟异步获取数据,实际应用中应该替换为你的数据获取逻辑,例如API调用
const newData = await this.fetchData( const newData = await this.fetchData(
+2 -2
View File
@@ -2,9 +2,9 @@
// export const BASE_URL="https://frontend.jdns360.com/api"; // 正式环境 // export const BASE_URL="https://frontend.jdns360.com/api"; // 正式环境
// export const BASE_URL="http://cl55un59859.vicp.fun:24346"; // 测试环境 // export const BASE_URL="http://cl55un59859.vicp.fun:24346"; // 测试环境
export const BASE_URL = "https://api.tbmall.xin"; //生产 // export const BASE_URL = "https://api.tbmall.xin"; //生产
// export const BASE_URL ='http://api.hm.a-d.work:6880' // 测试 // export const BASE_URL ='http://api.hm.a-d.work:6880' // 测试
// export const BASE_URL ='http://api.outer.tbmall.xin:6880' // 本地测试 export const BASE_URL ='http://api.outer.tbmall.xin:6880' // 本地测试