|
@@ -185,14 +185,16 @@ const saveEdit = (row: CatalogTreeOri) => {
|
|
|
|
|
|
const copyCode = (row: CatalogTreeOri) => {
|
|
|
const slots = row.slots || []
|
|
|
+ const ele = document.createElement('script')
|
|
|
+ ele.src = `http://cxzx.smcic.net/ad/catalog/${row.catalogId}.js`
|
|
|
ElNotification({
|
|
|
title: '请复制下文',
|
|
|
- message: `<script src="http://cxzx.smcic.net/ad/catalog/${row.catalogId}.js"/>`,
|
|
|
+ message: ele.outerHTML,
|
|
|
duration: 0,
|
|
|
})
|
|
|
ElNotification({
|
|
|
- title: 'divID',
|
|
|
- message: '当前id为:' + slots.map((v) => '#sxtv-ad-' + v.slotId).join(','),
|
|
|
+ title: '当前id为:',
|
|
|
+ message: slots.map((v) => '#sxtv-ad-' + v.slotId).join(','),
|
|
|
duration: 0,
|
|
|
offset: 200,
|
|
|
})
|