Browse Source

fix issue

tags/v1.22.5.1^2
zhoupzh 3 years ago
parent
commit
aec9268bd1
2 changed files with 19 additions and 0 deletions
  1. +10
    -0
      web_src/js/components/images/Images.vue
  2. +9
    -0
      web_src/js/features/clipboard.js

+ 10
- 0
web_src/js/components/images/Images.vue View File

@@ -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'){


+ 9
- 0
web_src/js/features/clipboard.js View File

@@ -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) => {


Loading…
Cancel
Save