@wagq/wa-cli 0.6.16 → 0.6.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/daml/asyncByApp.js +8 -1
- package/package.json +1 -1
package/lib/daml/asyncByApp.js
CHANGED
|
@@ -142,9 +142,16 @@ const generateLogic = async (dirName, daml, name) => {
|
|
|
142
142
|
);
|
|
143
143
|
const pages = daml.app.subapps[0]?.actions?.actionList || [];
|
|
144
144
|
pages.forEach(({ content, name: fileName }) => {
|
|
145
|
+
const hasFileJsDoc = content.includes("@file");
|
|
145
146
|
// 添加标识
|
|
146
|
-
content =
|
|
147
|
+
content = hasFileJsDoc
|
|
148
|
+
? ""
|
|
149
|
+
: `/** @file ${name}(逻辑名称:${fileName}) */
|
|
147
150
|
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @type {import("../../../../sass").CustomAction}
|
|
154
|
+
*/
|
|
148
155
|
${content}`;
|
|
149
156
|
|
|
150
157
|
fs.writeFileSync(`${logicDir}/${fileName}.js`, content, {
|