|
@@ -343,7 +343,19 @@ export default {
|
|
|
methods: {
|
|
|
handleShare(outCode){
|
|
|
const url = shareWebUrl + outCode
|
|
|
- window.open(url)
|
|
|
+
|
|
|
+ const input = document.createElement('input');
|
|
|
+
|
|
|
+ document.body.appendChild(input)
|
|
|
+ input.value = url
|
|
|
+
|
|
|
+ input.select()
|
|
|
+
|
|
|
+ document.execCommand('Copy')
|
|
|
+
|
|
|
+ this.$message.success('复制成功')
|
|
|
+
|
|
|
+ document.body.removeChild(input)
|
|
|
},
|
|
|
getRouter(toRouter, queryId) {
|
|
|
if (toRouter && queryId) {
|