Skip to content

[Bug Report/Feeback] #90

Description

@akan

问题描述
简明扼要的描述你的问题
路由history模式,二级页面静态资源路径bug

环境描述/版本信息 (请完成如下信息)

  • OS: [e.g. Mac/Windows]
  • Browser [e.g. chrome, safari]
  • Node
  • fes -V
  • 项目package.json

如何复现
复现步骤

二级页面,如/abc/def里面静态图片资源
image

会被编译为:
image
这个路径不应该带.,即history模式需要考虑当前页面路由算require静态资源的path,nuxt里面这个应该是处理的比较好的。
目前fes.js没有针对history模式二三级页面的路径做处理。

预期结果
简明扼要的说明你期待的结果
期望路径是正确的绝对路径或者相对路径。
/static/images/.....

截图
如果可以的话,附上截图

其它补充内容
任何和这个问题有关的额外内容

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions