From 8cfad4af99f23efa699e749607ee2465c012f322 Mon Sep 17 00:00:00 2001 From: Jack Goh Date: Thu, 30 Aug 2018 10:52:35 +0800 Subject: [PATCH] fix refactor navbar error fix this.user not found error --- public/mix-manifest.json | 6 +- resources/assets/js/components/Navbar.vue | 413 +++++++++------------- 2 files changed, 166 insertions(+), 253 deletions(-) diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 774f9597..1644088d 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -1,7 +1,7 @@ { - "/js/lang-zh-CN.c0da3973e52421a8cfe5.js": "/js/lang-zh-CN.c0da3973e52421a8cfe5.js", - "/js/lang-es.f4a1a5b4a30e92527b46.js": "/js/lang-es.f4a1a5b4a30e92527b46.js", - "/js/lang-en.0f790217417404ecc662.js": "/js/lang-en.0f790217417404ecc662.js", + "/js/lang-zh-CN.1eaced19dec8880e8788.js": "/js/lang-zh-CN.1eaced19dec8880e8788.js", + "/js/lang-es.8f478e6e7ba5b47cb57f.js": "/js/lang-es.8f478e6e7ba5b47cb57f.js", + "/js/lang-en.118567ba566d80e1464a.js": "/js/lang-en.118567ba566d80e1464a.js", "/js/app.js": "/js/app.js", "/css/app.css": "/css/app.css" } \ No newline at end of file diff --git a/resources/assets/js/components/Navbar.vue b/resources/assets/js/components/Navbar.vue index 03ecc9ee..9300f47c 100644 --- a/resources/assets/js/components/Navbar.vue +++ b/resources/assets/js/components/Navbar.vue @@ -1,191 +1,93 @@ -< template > - < - nav class = "navbar navbar-expand-lg navbar-light bg-white" > - < - div class = "container" > - < - router - link: to = "{ name: user ? 'home' : 'welcome' }" -class = "navbar-brand" > { - { - appName - } - } < - /router-link> + - < - script > - import { - mapGetters - } from 'vuex' + -< -style scoped > - .profile - photo { - width: 2 rem; - height: 2 rem; - margin: -.375 rem 0; - } - .el - dropdown - menu { - height: 50 % ; - }# -notification { - overflow - y: scroll; - overflow - x: hidden; - max - height: 100 % ; -}# -notification - load - more { - position: absolute; - width: 100 % ; - min - height: 20 px; - background: white; - border: 1 px solid# dcdfe6; - } - .el - dropdown - menu__item { - line - height: 26 px; - } - .opacity80 { - opacity: 0.8; - }::-webkit - scrollbar { - width: 0 px; +