diff --git a/frontend/src/views/Settings.vue b/frontend/src/views/Settings.vue
index 661d057..625c32c 100644
--- a/frontend/src/views/Settings.vue
+++ b/frontend/src/views/Settings.vue
@@ -227,7 +227,7 @@ const checkUpdate = async () => {
updateData.value = response.update_info
updateVisible.value = true
} else {
- message.success("暂无更新~")
+ message.success('暂无更新~')
}
} else {
message.error(response.message || '获取更新失败')
@@ -1220,8 +1220,8 @@ onMounted(() => {
AUTO-MAS
- 当前版本:
- {{app_version}}
+ 许可证:
+ GPL-3.0 license
@@ -1229,39 +1229,54 @@ onMounted(() => {
开发者:
AUTO-MAS Team
-
- 许可证:
- GPL-3.0 license
-
+
+
+
+
+
- 当前后端版本:
- {{backendUpdateInfo?.current_version}}
+ 当前前端版本:
+ {{ version }}
当前后端哈希值:
- {{backendUpdateInfo?.current_hash}}
+ {{ backendUpdateInfo?.current_hash }}
- 当前时间?:
- {{backendUpdateInfo?.current_time}}
+ 当前后端版本:
+ {{ backendUpdateInfo?.current_version }}
- 是否需要更新:
- {{backendUpdateInfo?.if_need_update}}
+ 后端更新时间:
+ {{ backendUpdateInfo?.current_time }}
- 检查更新
+
+
+
@@ -1513,4 +1528,78 @@ onMounted(() => {
color: var(--ant-color-text-secondary);
margin-left: 8px;
}
+
+/* 检查更新按钮样式 */
+.update-section {
+ margin-top: 24px;
+ padding: 20px;
+ background: linear-gradient(
+ 135deg,
+ var(--ant-color-primary-bg) 0%,
+ var(--ant-color-primary-bg-hover) 100%
+ );
+ border: 1px solid var(--ant-color-primary-border);
+ border-radius: 12px;
+ position: relative;
+ overflow: hidden;
+}
+
+.update-section::before {
+ content: '';
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ height: 3px;
+ background: linear-gradient(90deg, var(--ant-color-primary), var(--ant-color-primary-hover));
+}
+
+.update-button-wrapper {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 12px;
+}
+
+.update-button {
+ height: 48px;
+ padding: 0 32px;
+ font-size: 16px;
+ font-weight: 600;
+ border-radius: 8px;
+ box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ min-width: 160px;
+ justify-content: center;
+}
+
+.update-button:hover {
+ transform: translateY(-2px);
+ box-shadow: 0 6px 20px rgba(22, 119, 255, 0.4);
+}
+
+.update-button:active {
+ transform: translateY(0);
+}
+
+.update-button svg {
+ transition: transform 0.3s ease;
+}
+
+.update-button:hover svg {
+ transform: rotate(180deg);
+}
+
+.update-hint {
+ text-align: center;
+}
+
+.update-hint span {
+ font-size: 13px;
+ color: var(--ant-color-text-tertiary);
+ font-weight: 500;
+}