diff --git a/src/components/ServiceConfigurationActionLog.vue b/src/components/ServiceConfigurationActionLog.vue index 989caa0..313ab4b 100644 --- a/src/components/ServiceConfigurationActionLog.vue +++ b/src/components/ServiceConfigurationActionLog.vue @@ -12,9 +12,14 @@ -
- +
+ + + + + +
@@ -22,8 +27,9 @@
- - + +
@@ -33,6 +39,8 @@ import * as echarts from 'echarts'; import { ref, nextTick, watch } from 'vue'; import VueJsonPretty from 'vue-json-pretty'; import 'vue-json-pretty/lib/styles.css'; +import { message } from 'ant-design-vue'; +import { CopyOutlined, StarFilled, StarTwoTone } from '@ant-design/icons-vue'; /** @var {Object} */ const props = defineProps({ log: Object, @@ -163,4 +171,10 @@ async function handleLogChange() { reultDisplay.value = true; } } + +function copyToClipboard() { + message.info('已经拷贝'); + console.log("已经拷贝"); + navigator.clipboard.writeText(JSON.stringify(resultContent.value, null, 2)); +} \ No newline at end of file