From 983e7d85c0abf1d74723cdb919ab9c968e8f57fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com> Date: Sat, 8 Apr 2023 00:34:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 170938c..df9973f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,8 +4,17 @@ export default { pageConfig: {}, }, onLaunch: async function () { + let that = this; + for (let method of ["navigateTo", "redirectTo", "reLaunch", "switchTab", "navigateBack"]) { + uni.addInterceptor(method, { + success() { + that.$store.commit("toast/show", false); + that.$store.commit("toast/title", ""); + }, + }); + } let pageConfig = this.$storage.get("system_config"); - if (true) { + if (!pageConfig) { const { windowWidth, windowHeight, statusBarHeight, safeAreaInsets } = uni.getSystemInfoSync(); // #ifndef H5 const { height, top } = uni.getMenuButtonBoundingClientRect();