diff --git a/src/views/order/Index.vue b/src/views/order/Index.vue
index 7d4bf1d..c665a4c 100644
--- a/src/views/order/Index.vue
+++ b/src/views/order/Index.vue
@@ -87,6 +87,7 @@
+
审核取消
删除
+ 复制
|
@@ -332,6 +334,7 @@ export default {
// 当前页码
page: 1,
pageSizes: 15,
+ textToCopy: '',
// 列表数据
orderList: { data: [], total: 0 },
pageSizeOptions: ['15', '30', '50'],
@@ -386,6 +389,15 @@ export default {
return this.$route.path.split('/')[3].replace('-', '_')
},
+ async copyText(text) {
+ try {
+ const textToCopy = text
+ await navigator.clipboard.writeText(textToCopy)
+ console.log('文本已复制到剪贴板')
+ } catch (err) {
+ console.error('复制到剪贴板失败', err)
+ }
+ },
// 获取列表数据
getList() {
const { dataType, queryParam, page } = this