From 1473745cf39e94933179276a6d533bff2ceff79d Mon Sep 17 00:00:00 2001
From: zs <zhousong@weben-smart.com>
Date: 周二, 06 5月 2025 16:22:55 +0800
Subject: [PATCH] 任务管理
---
PipeLineLems/web/script/plugins/vite-plugin-widget-provider.ts | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/PipeLineLems/web/script/plugins/vite-plugin-widget-provider.ts b/PipeLineLems/web/script/plugins/vite-plugin-widget-provider.ts
index 88b58c7..a404c85 100644
--- a/PipeLineLems/web/script/plugins/vite-plugin-widget-provider.ts
+++ b/PipeLineLems/web/script/plugins/vite-plugin-widget-provider.ts
@@ -5,6 +5,7 @@
// @ts-ignore
const filePath = isWin ? basePath.replaceAll('\\', '/') : basePath
const regex = new RegExp(`${filePath}/([^/]*)/index.ts`)
+const NOT_PAGE = 'notPage:true'
/**
* 鎻愬彇鍏抽敭瀛楃
* @param {*} code
@@ -58,8 +59,12 @@
if (regex.test(id)) {
const codeData = parseCode(code)
const transformCode = mergeCodeString(codeData, code)
+ // const emptyCode = code.replaceAll(' ', '')
+
+ const newCode = transformCode
+ // const newCode = emptyCode.includes(NOT_PAGE) ? code : transformCode
return {
- code: transformCode,
+ code: newCode,
map: null, // 濡傛灉鍙灏嗘彁渚� source map
}
}
--
Gitblit v1.9.3