|
@@ -7,8 +7,9 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div style="display: flex; align-items: center; width: 100%; justify-content: space-between">
|
|
<div style="display: flex; align-items: center; width: 100%; justify-content: space-between">
|
|
|
- <span>{{ thisUrl }}</span> <a-button type="primary" @click="copyLink()">复制链接</a-button>
|
|
|
|
|
|
|
+ <p>{{ thisUrl }}</p>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <a-button type="primary" @click="copyLink()">复制链接</a-button>
|
|
|
</div>
|
|
</div>
|
|
|
</a-modal>
|
|
</a-modal>
|
|
|
</template>
|
|
</template>
|
|
@@ -19,6 +20,7 @@
|
|
|
import EventBus from '@/utils/EventBus'
|
|
import EventBus from '@/utils/EventBus'
|
|
|
import { Modal, message, notification } from 'ant-design-vue'
|
|
import { Modal, message, notification } from 'ant-design-vue'
|
|
|
import tool from '@/utils/tool'
|
|
import tool from '@/utils/tool'
|
|
|
|
|
+ import sysConfig from '@/config/index'
|
|
|
const emit = defineEmits(['selectTab'])
|
|
const emit = defineEmits(['selectTab'])
|
|
|
|
|
|
|
|
// id: 1,
|
|
// id: 1,
|
|
@@ -61,11 +63,11 @@
|
|
|
visible.value = false
|
|
visible.value = false
|
|
|
// listUnpublishedView.value.setData(tableData.value)
|
|
// listUnpublishedView.value.setData(tableData.value)
|
|
|
}
|
|
}
|
|
|
- const open = (data) => {
|
|
|
|
|
- console.log('要 打开分享弹窗')
|
|
|
|
|
|
|
+ const open = (shareLink) => {
|
|
|
|
|
+ console.log('要 打开分享弹窗', shareLink)
|
|
|
visible.value = true
|
|
visible.value = true
|
|
|
// itemData.value = data
|
|
// itemData.value = data
|
|
|
- thisUrl.value = window.location.href
|
|
|
|
|
|
|
+ thisUrl.value = sysConfig.API_URL + shareLink
|
|
|
}
|
|
}
|
|
|
const copyLink = () => {
|
|
const copyLink = () => {
|
|
|
tool.writeText(thisUrl.value)
|
|
tool.writeText(thisUrl.value)
|