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 {
},
// 复制按钮
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