diff --git a/App.vue b/App.vue index de47cc9..8c2876b 100644 --- a/App.vue +++ b/App.vue @@ -6,7 +6,7 @@ import appUpdate from "@/components/appUpdate/appUpdate.js"; export default { onLaunch: function () { console.log("%c%s", "color:red", "onLaunch---"); - // uni.showLoading({ title: "等待参数传入" }); + uni.showLoading({ title: "加载中" }); // uni.setStorageSync("token", ""); window.initFn = this.initFn; // this.initFn(); @@ -63,6 +63,7 @@ export default { onHide: function () {}, methods: { initFn(data) { + uni.hideLoading(); // 关闭 Loading if (!data) { return uni.showToast({ title: "未传入参数 initFn", icon: "none" }); } diff --git a/pages/index/index.vue b/pages/index/index.vue index 65a405a..f9be6c3 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,7 +1,8 @@