diff --git a/frontend/src/views/website/ssl/detail/index.vue b/frontend/src/views/website/ssl/detail/index.vue index b589ac0f6..fb0b0add3 100644 --- a/frontend/src/views/website/ssl/detail/index.vue +++ b/frontend/src/views/website/ssl/detail/index.vue @@ -26,9 +26,17 @@
+
+
+ {{ $t('file.copy') }} +
+
+
+ {{ $t('file.copy') }} +
@@ -37,6 +45,8 @@ import { GetSSL } from '@/api/modules/website'; import { ref } from 'vue'; import { dateFromat } from '@/utils/util'; +import { ElMessage } from 'element-plus'; +import i18n from '@/lang'; let open = ref(false); let id = ref(0); @@ -60,6 +70,12 @@ const get = async () => { ssl.value = res.data; }; +const copyText = (val: string): void => { + navigator.clipboard.writeText(val).then(() => { + ElMessage.success(i18n.global.t('commons.msg.copySuccess')); + }); +}; + defineExpose({ acceptParams, });