Skip to content

动态路由打包后遇到的bug,开发环境正常 #4200

Open
@jay86cn

Description

@jay86cn

Describe the bug

当我在使用动态路由的功能的时候,开发状态下是正常运行的,如下方的配置

image

export default { paths() { return [ { params: { pkg: '../svgui/important/' }}, { params: { pkg: '../toolkit/important/' }}, ] } }

我在当前目录的上级中的两个目录中分别用当前的md文件生成了两个文件,开发环境一切正常。
但打包之后,对应目录的文件生成了,但是内容却是404。

Reproduction

Expected behavior

希望能改进后,开发环境和生产环境表现一致。

System Info

node 18.19 
windows

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions