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();