From 2d81cffb3329bb874f32e41b3fe38c2eef6eb55e Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 22 Oct 2024 13:34:20 +0200 Subject: [PATCH] feat: refs #8039 show duplicate request in local --- src/boot/quasar.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/boot/quasar.js b/src/boot/quasar.js index bf5175ee6..7845719fe 100644 --- a/src/boot/quasar.js +++ b/src/boot/quasar.js @@ -4,6 +4,7 @@ import mainShortcutMixin from './mainShortcutMixin'; import keyShortcut from './keyShortcut'; import useNotify from 'src/composables/useNotify.js'; import { CanceledError } from 'axios'; + const { notify } = useNotify(); export default boot(({ app }) => { @@ -41,7 +42,11 @@ export default boot(({ app }) => { } console.error(error); - if (error instanceof CanceledError) return; + if (error instanceof CanceledError) { + const env = process.env.NODE_ENV; + if (env && env !== 'development') return; + message = 'Duplicate request'; + } notify(message ?? 'globals.error', 'negative', 'error'); };