From 8b362044d369c44c310e52c2988fdc67707c7d57 Mon Sep 17 00:00:00 2001 From: Mohd Arief Date: Tue, 7 Aug 2018 12:16:31 +0800 Subject: [PATCH 1/3] fixed the notification bug --- resources/assets/js/app.js | 34 +++++++++--------- resources/assets/js/components/Navbar.vue | 43 +++++++++++++++-------- 2 files changed, 46 insertions(+), 31 deletions(-) diff --git a/resources/assets/js/app.js b/resources/assets/js/app.js index e0e5bcc2..9509ac12 100644 --- a/resources/assets/js/app.js +++ b/resources/assets/js/app.js @@ -11,23 +11,23 @@ import '~/plugins' import '~/components' const config = { - errorBagName: 'errors', // change if property conflicts. - fieldsBagName: 'fields', - delay: 0, - // locale: 'zh_CN', - strict: true, - enableAutoClasses: false, - classNames: { - touched: 'touched', // the control has been blurred - untouched: 'untouched', // the control hasn't been blurred - valid: 'valid', // model is valid - invalid: 'invalid', // model is invalid - pristine: 'pristine', // control has not been interacted with - dirty: 'dirty' // control has been interacted with - }, - events: 'blur', - inject: true -}; + errorBagName: 'errors', // change if property conflicts. + fieldsBagName: 'fields', + delay: 0, + // locale: 'zh_CN', + strict: true, + enableAutoClasses: false, + classNames: { + touched: 'touched', // the control has been blurred + untouched: 'untouched', // the control hasn't been blurred + valid: 'valid', // model is valid + invalid: 'invalid', // model is invalid + pristine: 'pristine', // control has not been interacted with + dirty: 'dirty' // control has been interacted with + }, + events: 'blur', + inject: true +} Vue.config.productionTip = false diff --git a/resources/assets/js/components/Navbar.vue b/resources/assets/js/components/Navbar.vue index aa7ab426..bd59c8a9 100644 --- a/resources/assets/js/components/Navbar.vue +++ b/resources/assets/js/components/Navbar.vue @@ -5,21 +5,10 @@ {{ appName }} - - -