增加综合演练仿真号复制
This commit is contained in:
parent
cde33feb22
commit
3ecf5e4da3
@ -4,6 +4,7 @@
|
||||
<span>{{ $t('global.roomId')+group }}</span>
|
||||
</div>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="copyGroup">复制</el-button>
|
||||
<el-button @click="doClose">{{ $t('global.close') }}</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
@ -21,6 +22,13 @@ export default {
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
copyGroup() {
|
||||
navigator.clipboard.writeText(this.group).then(() => {
|
||||
this.$message.success('仿真号已经复制到粘贴板');
|
||||
}).catch(()=> {
|
||||
this.$message.error('复制失败!');
|
||||
});
|
||||
},
|
||||
clearModel() {
|
||||
this.title = '';
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user