Commit 84444e7e authored by 刘用法's avatar 刘用法

加载优化

parent 8ec521c9
...@@ -107,8 +107,8 @@ export default { ...@@ -107,8 +107,8 @@ export default {
}, },
async getBaseInfo(vm, callBack) { async getBaseInfo(vm, callBack) {
uni.showLoading({ uni.showLoading({
title: "加载中……", // title: "加载中……",
}); // });
const res = await vm.$u.api.getSettleBaseInfo(); const res = await vm.$u.api.getSettleBaseInfo();
if (res.code !== 200) { if (res.code !== 200) {
uni.showToast({ uni.showToast({
...@@ -125,7 +125,7 @@ export default { ...@@ -125,7 +125,7 @@ export default {
if (typeof callBack == "function") { if (typeof callBack == "function") {
callBack(vm, res.data); callBack(vm, res.data);
} }
uni.hideLoading(); // uni.hideLoading();
return res.data; return res.data;
}, },
......
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