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

不同页面的wxml中include相同的template文件打包出来路径和预想结果错误 #8

Open
julytian opened this issue Dec 29, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@julytian
Copy link

例如:
index页面和logs页面都通过include相对路径进来一个template文件,打包出来的dist目录里显示的最终路径是错误的,并且只有index目录有对应的template文件,logs目录里面没有。导致logs页面没有正常显示

image

image

@Tidyzq
Copy link
Contributor

Tidyzq commented Dec 29, 2020

可以先在 logs.wxml 中通过在 src 后面加入一个 query 字符串来临时绕过

<include src="../../template/header.wxml?1" />

这里是由于 wxml 的特殊打包处理逻辑导致的,需要思考一下更合适的方案

@Tidyzq Tidyzq added the bug Something isn't working label Dec 29, 2020
@codetker
Copy link

复现+1,希望尽快解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants