From 15f4c05772813168ff7bf5cd4e285dc13fca51ca Mon Sep 17 00:00:00 2001
From: trom <107225647+see-more@users.noreply.github.com>
Date: Fri, 9 Aug 2024 18:25:53 +0800
Subject: [PATCH] =?UTF-8?q?chore:=E7=82=B9=E5=87=BB=E5=A4=8D=E5=88=B6?=
=?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7(#5894)=20(#6077)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/components/system-upgrade/index.vue | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/frontend/src/components/system-upgrade/index.vue b/frontend/src/components/system-upgrade/index.vue
index 507bdbddd..1852c316b 100644
--- a/frontend/src/components/system-upgrade/index.vue
+++ b/frontend/src/components/system-upgrade/index.vue
@@ -17,7 +17,10 @@
{{ isProductPro ? $t('license.pro') : $t('license.community') }}
- {{ version }}
+
+ {{ copied ? $t('commons.msg.copySuccess') : version }}
+
+ {{ version }}
({{ $t('setting.hasNewVersion') }})
@@ -85,9 +88,11 @@ import { onMounted, ref } from 'vue';
import { GlobalStore } from '@/store';
import { ElMessageBox } from 'element-plus';
import { storeToRefs } from 'pinia';
+import { useClipboard } from '@vueuse/core';
const globalStore = GlobalStore();
const { isDarkTheme } = storeToRefs(globalStore);
+const { copied, copy, isSupported } = useClipboard();
const version = ref('');
const isProductPro = ref();
@@ -190,6 +195,7 @@ onMounted(() => {
color: var(--dark-gold-base-color);
text-decoration: none;
letter-spacing: 0.5px;
+ cursor: pointer;
}
.line-height {
line-height: 25px;