From 6af89f9f75b85c43b24e23264164f27219d47615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BD=AA?= Date: Mon, 14 Apr 2025 10:47:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E5=90=88=E5=AE=89=E5=8D=93=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 3 ++- pages/index/index.vue | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) 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 @@