From 5d5349c8091fa800bc856ed155115f4aac6fbbde Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com>
Date: Tue, 1 Jul 2025 11:02:24 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9C=8B=E6=9D=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 3 ++-
src/App.vue | 9 ++++++---
src/assets/icons/svg/home.svg | 5 +++++
src/assets/styles/sidebar.scss | 4 ++--
src/layout/components/Sidebar/index.vue | 7 ++++---
src/layout/index.vue | 26 +++++++++++++++++++++++--
src/router/index.js | 3 +--
7 files changed, 44 insertions(+), 13 deletions(-)
create mode 100644 src/assets/icons/svg/home.svg
diff --git a/package.json b/package.json
index 9994d18..7c09a9f 100644
--- a/package.json
+++ b/package.json
@@ -93,6 +93,7 @@
},
"browserslist": [
"> 0.25%",
- "not dead"
+ "not dead",
+ "chrome 58"
]
}
diff --git a/src/App.vue b/src/App.vue
index cd669ff..f6a6a16 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -27,8 +27,8 @@ export default {
isOnline: {},
// WebSocket相关
websocket: null,
- websocketUrl: 'ws://10.42.0.1:7181/ws',
- // websocketUrl: 'ws://119.45.202.115:7181/ws',
+ // websocketUrl: 'ws://10.42.0.1:7181/ws',
+ websocketUrl: 'ws://119.45.202.115:7181/ws',
isWebSocketConnected: false,
reconnectTimer: null,
reconnectAttempts: 0,
@@ -104,7 +104,7 @@ export default {
try {
const data = JSON.parse(event.data, (key, value, ctx) => {
if (ctx) {
- console.log('ctx', ctx)
+ // console.log('ctx', ctx)
}
if (typeof value === 'number' && value > Number.MAX_SAFE_INTEGER) {
return ctx?.source || value;
@@ -375,6 +375,9 @@ export default {
showConfirmButton: false,
type: 'error'
})
+ setTimeout(() => {
+ debugger
+ }, 200)
this.isOnline[key] = new Date().getTime()
}
}
diff --git a/src/assets/icons/svg/home.svg b/src/assets/icons/svg/home.svg
new file mode 100644
index 0000000..64779c9
--- /dev/null
+++ b/src/assets/icons/svg/home.svg
@@ -0,0 +1,5 @@
+
\ No newline at end of file
diff --git a/src/assets/styles/sidebar.scss b/src/assets/styles/sidebar.scss
index abe5b63..dbfc5b4 100644
--- a/src/assets/styles/sidebar.scss
+++ b/src/assets/styles/sidebar.scss
@@ -16,10 +16,10 @@
transition: width 0.28s;
width: $base-sidebar-width !important;
background-color: $base-menu-background;
- height: 100%;
+ height: calc(100% - 50px);
position: fixed;
font-size: 0px;
- top: 0;
+ top: 50px;
bottom: 0;
left: 0;
z-index: 1001;
diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index 51d0839..7f8f1e0 100644
--- a/src/layout/components/Sidebar/index.vue
+++ b/src/layout/components/Sidebar/index.vue
@@ -1,6 +1,6 @@
-
+
import { mapGetters, mapState } from "vuex";
-import Logo from "./Logo";
+// import Logo from "./Logo";
import SidebarItem from "./SidebarItem";
import variables from "@/assets/styles/variables.scss";
export default {
- components: { SidebarItem, Logo },
+ // components: { SidebarItem, Logo },
+ components: { SidebarItem, },
computed: {
...mapState(["settings"]),
...mapGetters(["sidebarRouters", "sidebar"]),
diff --git a/src/layout/index.vue b/src/layout/index.vue
index dba4393..98b13b9 100644
--- a/src/layout/index.vue
+++ b/src/layout/index.vue
@@ -1,10 +1,15 @@