diff --git a/src/views/attachment/components/AttachmentDetailDrawer.vue b/src/views/attachment/components/AttachmentDetailDrawer.vue index bfb8df23..9ff754c2 100644 --- a/src/views/attachment/components/AttachmentDetailDrawer.vue +++ b/src/views/attachment/components/AttachmentDetailDrawer.vue @@ -91,11 +91,11 @@ 普通链接: - - + + @@ -105,11 +105,11 @@ ![{{ attachment.name }}]({{ attachment.path }}) Markdown 格式: - - + + @@ -118,7 +118,7 @@ - +
+ { this.updating = false }) + }, + handleCopyEnvironments() { + const text = `Server 版本:${this.environments.version} +Admin 版本:${this.adminVersion} +数据库:${this.environments.database} +运行模式:${this.environments.mode}` + this.$copyText(text) + .then(message => { + console.log('copy', message) + this.$message.success('复制成功!') + }) + .catch(err => { + console.log('copy.err', err) + this.$message.error('复制失败!') + }) } } }