diff --git a/templates/repo/datasets/index.tmpl b/templates/repo/datasets/index.tmpl index ba4842f57..f9f6a10fc 100755 --- a/templates/repo/datasets/index.tmpl +++ b/templates/repo/datasets/index.tmpl @@ -1,41 +1,47 @@ {{template "base/head" .}}
{{template "repo/header" .}} {{if .dataset}} - -{{template "base/footer" .}} +{{template "base/footer" .}} \ No newline at end of file diff --git a/web_src/js/components/images/Images.vue b/web_src/js/components/images/Images.vue index ac71fb370..5c50f38d7 100644 --- a/web_src/js/components/images/Images.vue +++ b/web_src/js/components/images/Images.vue @@ -641,6 +641,15 @@ export default { cInput.select() document.execCommand('Copy') cInput.remove() + $('body') + .toast({ + message: '复制成功!', + showProgress: 'bottom', + showIcon:'check circle', + class: 'info', + position: 'top right', + }) + ; }, searchName(){ if(this.activeName=='first'){ diff --git a/web_src/js/features/clipboard.js b/web_src/js/features/clipboard.js index a3b6b26eb..bd4a664c7 100644 --- a/web_src/js/features/clipboard.js +++ b/web_src/js/features/clipboard.js @@ -2,7 +2,7 @@ export default async function initClipboard() { const els = document.querySelectorAll('.clipboard'); if (!els || !els.length) return; - const {default: ClipboardJS} = await import(/* webpackChunkName: "clipboard" */'clipboard'); + const { default: ClipboardJS } = await import(/* webpackChunkName: "clipboard" */'clipboard'); const clipboard = new ClipboardJS(els); clipboard.on('success', (e) => { diff --git a/web_src/js/index.js b/web_src/js/index.js index da5296db7..f3f25c03a 100755 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -3966,6 +3966,23 @@ function initVueDataset() { this.cloudbrainType = cloudbrainType }, methods: { + copyUrl(url) { + const cInput = document.createElement('input') + cInput.value = url + document.body.appendChild(cInput) + cInput.select() + document.execCommand('Copy') + cInput.remove() + $('body') + .toast({ + message: '复制成功!', + showProgress: 'bottom', + showIcon: 'check circle', + class: 'info', + position: 'top right', + }) + ; + }, handleCurrentChange(val) { this.page = val switch (this.activeName) { diff --git a/web_src/less/openi.less b/web_src/less/openi.less index 6d0daba19..918e4cd0c 100644 --- a/web_src/less/openi.less +++ b/web_src/less/openi.less @@ -1027,6 +1027,8 @@ display: block; height: 80; } +.ui.toast-container .toast-box.compact, .ui.toast-container .toast-box>.compact { + width: 250px !important; .context-menu-click { z-index: 99; position: absolute;