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({ -