From 6c24b3cf3016e9efa6ae0554f702045a615732f1 Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Mon, 30 Jun 2025 16:02:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85electron:build-all=20?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E5=B0=91=E4=B8=AA=E6=96=87=E4=BB=B6copyChat.?= =?UTF-8?q?ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jeecgboot-vue3/build/script/copyChat.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 jeecgboot-vue3/build/script/copyChat.ts diff --git a/jeecgboot-vue3/build/script/copyChat.ts b/jeecgboot-vue3/build/script/copyChat.ts new file mode 100644 index 000000000..0811181dc --- /dev/null +++ b/jeecgboot-vue3/build/script/copyChat.ts @@ -0,0 +1,14 @@ +const fs = require('fs-extra'); +const path = require('path'); + +const sourceDir = path.join(__dirname, '../../src/views/super/airag/aiapp/chat/js'); // 源目录 +const destDir = path.join(__dirname, '../../dist', 'chat'); // 目标目录 + +// 复制目录 +fs.copy(sourceDir, destDir) + .then(() => { + console.log(`成功将 ${sourceDir} 复制到 ${destDir}`); + }) + .catch(err => { + console.error(`复制目录失败: ${err.message}`); + }); \ No newline at end of file