Giter VIP home page Giter VIP logo

Comments (7)

cdll avatar cdll commented on June 14, 2024 1

木事儿了, 昨儿晚通宵写完了抹耶我自己都害怕...😨

from mpvue-entry.

F-loat avatar F-loat commented on June 14, 2024

页面的配置你应该写在 pages.js 里该页面对应的 config 属性中

from mpvue-entry.

kalooboy avatar kalooboy commented on June 14, 2024

已解决,刚刚确实试去了,正准备关闭该条,作者就回复了,回复效率棒棒的啊!

from mpvue-entry.

cdll avatar cdll commented on June 14, 2024

@F-loat 抱歉麻烦问一下, 我现在是有个原生项目重构为mpvue的, 暂时页面都还是原生的, 第一步现在是脚手架替换为mpvue, 现在遇到一个问题就是我原项目中移进main.js的config.pages是字符串数组, 然后在mpvueEntry用到的pages.js中, 配置的是一个空数组(因为页面太多了, config就先不一个一个搬过来了, 所以原来每个页面都有其原对应的.json配置文件), 现在遇到的问题就是貌似pages里的值完全覆盖了main里的config.pages, 这块想问一下有优化的空间么?

from mpvue-entry.

cdll avatar cdll commented on June 14, 2024

快速解决方案现在我能做到的就是 pages.js 中每个path的config都使用 require(<path>.json) 来省去手动拷贝搬迁, 但是也还是要全写完吖心累求理解~ T_T

from mpvue-entry.

F-loat avatar F-loat commented on June 14, 2024

pages.js 好像支持字符串数组的,但是就没有页面配置了,或者你写个脚本生成一次 pages.js 要求的格式不就行

from mpvue-entry.

cdll avatar cdll commented on June 14, 2024

@F-loat 字符串数组的方式, 没法标记 native: true ...

from mpvue-entry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.