Commit 0536761f by 杨明

fixed

1 parent ce26168c
......@@ -41,6 +41,7 @@ import phoneView from './PhoneView'
import draw from '@/mixins/draw'
import marketing from '@/mixins/marketing'
import { downloadIamge } from '@/common/constant'
import { cloneText } from '@/utils/index'
export default {
mixins: [draw, marketing],
components: {
......@@ -102,18 +103,8 @@ export default {
downloadIamge(url) {
downloadIamge(url)
},
handleSaveTxt(txt) {
this.$message({
message: '复制成功',
type: 'success',
customClass: 'message-Z-zinde'
})
const input = document.createElement('input')
document.body.appendChild(input)
input.setAttribute('value', txt)
input.select()
document.execCommand('Copy')
document.body.removeChild(input)
cloneText(text) {
cloneText(text)
},
getDetail(id) {
this.isQrcodeVisible = true
......@@ -168,7 +159,7 @@ export default {
.then(res => {
if (res) {
this.loading = false
this.getDetail(res)
this.getDetail(res.id ? res.id : res)
this.$message.success('操作成功')
}
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!