Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [Bug]: 使用源码中的出码功能进行出码,缺少文件 #1018

Closed
itophp opened this issue Jan 13, 2025 · 4 comments
Closed

🐛 [Bug]: 使用源码中的出码功能进行出码,缺少文件 #1018

itophp opened this issue Jan 13, 2025 · 4 comments

Comments

@itophp
Copy link

itophp commented Jan 13, 2025

Environment

Mac 14.6.1

Version

v20.15.0

Version

2.1.0

Link to minimal reproduction

https://github.com/itophp/oa-tiny-engine

Step to reproduce

我在进行自定义出码模板的时候,想使用官方的模板进行少量修改,从2.1.0版本的源码中复制出来的,结果发现少了很多文件。
但使用默认的配置是正常的,不会少文件,是缺少什么配置还是版本不正确吗。
image
image
image

What is expected

No response

What is actually happening

No response

What is your project name

企业信息化-OA项目

Any additional comments (optional)

No response

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐛 [Bug]: Use the decoding function in the source code to decode, missing files

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


I found the reason. It needs to be used directly, not customPlugins.

GenerateCodeService.apis.generateAppCode = async (appSchema, options = {}) => {
    const instance = generateApp({
        template: generateTemplate(),
        ...options
    })

    return instance.generate(appSchema)
}

@itophp itophp closed this as completed Jan 13, 2025
@itophp itophp reopened this Jan 13, 2025
@chilingling
Copy link
Member

chilingling commented Jan 13, 2025

#1000 请看该 PR

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


#1000 Please see this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants