Commit ce7a2083 authored by chenwei's avatar chenwei

Merge branch 'feature' into 'release'

分享统计重复请求

See merge request !18
parents 5019b527 331bc609
...@@ -62,19 +62,18 @@ export default { ...@@ -62,19 +62,18 @@ export default {
}, },
// 复制按钮 // 复制按钮
handleCopyBtn(item, e) { handleCopyBtn(item, e) {
shareRecordCreate({ memberId: this.$store.getters.id, const clipboard = new ClipboardJS(`.copyBtn${item.id}`)
ruleId: item.id }).then(res => { clipboard.on('success', () => {
const clipboard = new ClipboardJS(`.copyBtn${item.id}`) shareRecordCreate({ memberId: this.$store.getters.id,
this.$nextTick(() => { ruleId: item.id }).then(res => {
clipboard.on('success', () => { this.$message.success(this.$t('复制成功'))
this.$message.success(this.$t('复制成功'))
clipboard.destroy()
})
clipboard.on('error', () => {
this.$message.error(this.$t('复制失败'))
clipboard.destroy()
})
}) })
clipboard.destroy()
})
clipboard.on('error', () => {
this.$message.error(this.$t('复制失败'))
clipboard.destroy()
}) })
}, },
// 获取活动列表 // 获取活动列表
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment