From e4ccc35bba27fe2c17805d42b645e66f760e65fe Mon Sep 17 00:00:00 2001 From: cshaptx4869 <994774638@qq.com> Date: Tue, 12 Mar 2024 11:09:05 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20:recycle:=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E6=9E=9A=E4=B8=BE=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/enums/DeviceEnum.ts | 14 ++++++++++++++ .../components/NavBar/components/NavbarRight.vue | 6 +++--- src/layout/index.vue | 7 ++++--- src/store/modules/app.ts | 3 ++- 4 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 src/enums/DeviceEnum.ts diff --git a/src/enums/DeviceEnum.ts b/src/enums/DeviceEnum.ts new file mode 100644 index 0000000..709bcb3 --- /dev/null +++ b/src/enums/DeviceEnum.ts @@ -0,0 +1,14 @@ +/** + * 设备枚举 + */ +export const enum DeviceEnum { + /** + * 宽屏设备 + */ + DESKTOP = "desktop", + + /** + * 窄屏设备 + */ + MOBILE = "mobile", +} diff --git a/src/layout/components/NavBar/components/NavbarRight.vue b/src/layout/components/NavBar/components/NavbarRight.vue index 2bd5598..c97d46b 100644 --- a/src/layout/components/NavBar/components/NavbarRight.vue +++ b/src/layout/components/NavBar/components/NavbarRight.vue @@ -1,6 +1,6 @@