wechat-miniprogram / wechat-miniprogram/mpflow

当页面的 wxml 文件和 template 文件同名时,页面的wxml会被template文件覆盖

Open
#10 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
66
Forks
14
Avg merge
38m
Merged PRs (30d)
2

Description

如:event/event.wxml 引入了 template/event.wxml

event/event.wxml 的内容会变成 template/event.wxml的内容,也就是被覆盖了

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the collision described between event/event.wxml and template/event.wxml, then trace how mpflow resolves these two paths. The fix is done when the page file keeps its own contents instead of being replaced by template/event.wxml, including when both files share the same name.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.