From 4ad53af42d153018f92f7190763d025e202e6ac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Mon, 25 Apr 2022 18:35:28 +0800 Subject: [PATCH] =?UTF-8?q?navbar=E6=96=B0=E5=A2=9E=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/components/Notice/Index.vue | 107 ++++++++++++++++++++++++++++++ src/layout/components/Navbar.vue | 15 ++++- src/utils/signalR.js | 31 ++++----- src/views/system/notice/index.vue | 13 +++- vite.config.js | 7 +- 6 files changed, 154 insertions(+), 21 deletions(-) create mode 100644 src/components/Notice/Index.vue diff --git a/.env.development b/.env.development index 086d1fa..7346fda 100644 --- a/.env.development +++ b/.env.development @@ -12,4 +12,4 @@ VITE_APP_ROUTER_PREFIX = '/' VITE_APP_UPLOAD_URL = '/Common/UploadFile' #socket API -VITE_APP_SOCKET_API = 'http://localhost:8888/msghub' \ No newline at end of file +VITE_APP_SOCKET_API = '/msghub' \ No newline at end of file diff --git a/src/components/Notice/Index.vue b/src/components/Notice/Index.vue new file mode 100644 index 0000000..b67d8d2 --- /dev/null +++ b/src/components/Notice/Index.vue @@ -0,0 +1,107 @@ + + + + + diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 315c1a0..434f4b1 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -22,6 +22,17 @@ + +
+ + + + +
@@ -59,9 +70,11 @@ import SizeSelect from '@/components/SizeSelect' import HeaderSearch from '@/components/HeaderSearch' import ZrGit from '@/components/Zr/Git' import ZrDoc from '@/components/Zr/Doc' +import Notice from '@/components/Notice/Index' const store = useStore() const getters = computed(() => store.getters) +const isShowUserNewsPopover = ref(false) function toggleSideBar() { store.dispatch('app/toggleSideBar') @@ -100,7 +113,7 @@ function setLayout() { } -