Commit 86d6b8f7 authored by chenwei's avatar chenwei

Merge branch 'feature' into 'dev'

分享统计重复请求

See merge request !17
parents d6588788 331bc609
......@@ -62,19 +62,18 @@ export default {
},
// 复制按钮
handleCopyBtn(item, e) {
shareRecordCreate({ memberId: this.$store.getters.id,
ruleId: item.id }).then(res => {
const clipboard = new ClipboardJS(`.copyBtn${item.id}`)
this.$nextTick(() => {
clipboard.on('success', () => {
this.$message.success(this.$t('复制成功'))
clipboard.destroy()
})
clipboard.on('error', () => {
this.$message.error(this.$t('复制失败'))
clipboard.destroy()
})
const clipboard = new ClipboardJS(`.copyBtn${item.id}`)
clipboard.on('success', () => {
shareRecordCreate({ memberId: this.$store.getters.id,
ruleId: item.id }).then(res => {
this.$message.success(this.$t('复制成功'))
})
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