diff --git a/web_src/js/components/images/Images.vue b/web_src/js/components/images/Images.vue index 4c0eb7839..d524f6e15 100644 --- a/web_src/js/components/images/Images.vue +++ b/web_src/js/components/images/Images.vue @@ -638,6 +638,16 @@ export default { cInput.select() document.execCommand('Copy') cInput.remove() + $('body') + .toast({ + message: '复制成功!', + showProgress: 'bottom', + showIcon:'check circle', + class: 'success', + position: 'top right', + compact:false, + }) + ; }, searchName(){ if(this.activeName=='first'){ diff --git a/web_src/js/features/clipboard.js b/web_src/js/features/clipboard.js index a3b6b26eb..8965a798c 100644 --- a/web_src/js/features/clipboard.js +++ b/web_src/js/features/clipboard.js @@ -12,6 +12,15 @@ export default async function initClipboard() { e.trigger.setAttribute('data-content', e.trigger.getAttribute('data-success')); $(`#${e.trigger.getAttribute('id')}`).popup('show'); e.trigger.setAttribute('data-content', e.trigger.getAttribute('data-original')); + $('body') + .toast({ + message: '复制成功!', + showProgress: 'bottom', + showIcon:'check circle', + class: 'success', + position: 'top right', + compact:false, + }) }); clipboard.on('error', (e) => {