@@ -23,7 +23,7 @@ fs.writeFileSync(nativePath + path.sep + 'share.html', shareHtml);
// var consoleHtml = fs.readFileSync('dist/console.html');
// fs.writeFileSync(nativePath + path.sep + 'console.html', consoleHtml);
-var serverPath = `/var/www/html/projects/queenshow`;
+var serverPath = `/var/www/queenshow`;
var ftpUtils = new sftp({
remotePath: serverPath,
@@ -39,7 +39,6 @@ export default defineComponent(() => {
desc: data.desc,
};
state.useForPc = editor.controls.pageCtrl.rootPage.value.useFor == "pc";
- alert(1);
editor.controls.wxCtrl.setShareData(shareData);
editor.controls.wxCtrl.setShare(shareData);
@@ -130,6 +130,9 @@ export default defineUI({
<Menu.Item>
<div onClick={() => emit("menu", "delete")}>删除</div>
</Menu.Item>
+ <Menu.Item>
+ <div onClick={() => emit("menu", "kct")}>科创通链接</div>
+ </Menu.Item>
{isSys && !record.published && (
@@ -50,8 +50,13 @@ export function createPromotinController(
const shareLink = `${location.origin}${getPathname()}share.html?id=${
record._id
}&isSys=${isSys}`;
-
+ const height = 3000;
+ const embedLink = `<p><iframe style="border: none;" title="Embedded 3dqueen" src="${shareLink}" width="100%" height="${height}px"></iframe></p>`
+
switch (name) {
+ case "kct": //科创通嵌入链接
+ clipboard.copy(embedLink);
+ break
case "copyLink":
clipboard.copy(shareLink);
break;