From 8e16606fc12bce28b5fc1c40f949c105c79f6a47 Mon Sep 17 00:00:00 2001 From: Guo Tiantian <1431335589@qq.com> Date: Wed, 27 Aug 2025 07:51:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E5=8F=B0=E9=A1=B5=E9=9D=A2=E4=B8=BB=E9=A2=98=E9=80=82=E9=85=8D?= =?UTF-8?q?=E5=92=8C=E6=A0=B7=E5=BC=8F=E7=BB=9F=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/.env.development | 4 +- frontend/src/types/auto-imports.d.ts | 1 + frontend/src/views/dashboard/workplace.vue | 63 +++++++++------------- 3 files changed, 29 insertions(+), 39 deletions(-) diff --git a/frontend/.env.development b/frontend/.env.development index 1c96ad2b..3f08ecf7 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -5,8 +5,8 @@ VITE_APP_ENV=development VITE_APP_TITLE=fastapiadmin # 网络请求公用地址 -VITE_API_BASE_URL=http://localhost:8001 -# VITE_API_BASE_URL=https://service.fastapiadmin.com +# VITE_API_BASE_URL=http://localhost:8001 +VITE_API_BASE_URL=https://service.fastapiadmin.com # 代理前缀 VITE_APP_BASE_API=/api/v1 diff --git a/frontend/src/types/auto-imports.d.ts b/frontend/src/types/auto-imports.d.ts index 8b71b5d8..d800967e 100644 --- a/frontend/src/types/auto-imports.d.ts +++ b/frontend/src/types/auto-imports.d.ts @@ -325,6 +325,7 @@ declare module 'vue' { interface ComponentCustomProperties { readonly EffectScope: UnwrapRef readonly ElMessage: UnwrapRef + readonly ElMessageBox: UnwrapRef readonly ElNotification: UnwrapRef readonly acceptHMRUpdate: UnwrapRef readonly asyncComputed: UnwrapRef diff --git a/frontend/src/views/dashboard/workplace.vue b/frontend/src/views/dashboard/workplace.vue index 4f3bf7be..a580d06d 100644 --- a/frontend/src/views/dashboard/workplace.vue +++ b/frontend/src/views/dashboard/workplace.vue @@ -9,13 +9,13 @@
{{ timefix }}{{ currentUser.name }},{{ welcome }}
- + {{ currentUser.username }} | {{ currentUser.dept_name }} | {{ currentUser.description }} -
+
最近登录时间
{{ currentUser.last_login }}
@@ -71,19 +71,19 @@ -
+
- {{ item.notice_title }} + {{ item.notice_title }} {{ getNoticeTypeText(item.notice_type) }}
- {{ formatTime(item.created_at) }} + {{ formatTime(item.created_at) }}
-
{{ item.notice_content }}
+
{{ item.notice_content }}
- {{ item.creator?.name }} 发布 + {{ item.creator?.name }} 发布 详情↗ @@ -94,17 +94,18 @@ - -
- - - - - {{ item.member }} - - - -
+ + + + + + + {{ item.member }} + + + @@ -310,26 +311,14 @@ const chartOptions = reactive({ -