feat(app/web): add copy markdown code button (#1246)
This commit is contained in:
@@ -84,7 +84,9 @@
|
||||
tab: {
|
||||
immediate: true,
|
||||
handler(current) {
|
||||
if (current === "action")
|
||||
if (current === "markdown")
|
||||
this.clipboard = new ClipboardJS(".copy-markdown")
|
||||
else if (current === "action")
|
||||
this.clipboard = new ClipboardJS(".copy-action")
|
||||
else
|
||||
this.clipboard?.destroy()
|
||||
|
||||
Reference in New Issue
Block a user