We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
bug描述
router.config.js 中配置的 path 必须带 /,这样在编译成快应用的时候也会出现 /,但是快应用的路由配置规定不能以 / 开头。
/
复现bug的步骤
例如这样配置 cml 项目的 router.config.js:
{ "mode": "hash", "domain": "https://api.chameleon.com", "routes":[ { "url": "/", "path": "/pages/index/index", "name": "首页", "mock": "index.php" } ] }
编译成的快应用的路由:
"router": { "pages": { "/pages/index": { "component": "index", "path": "pages/index/index" } }, "entry": "/pages/index" }
pages 里面的 key 不能以 / 开始,下面这样才是合法的:
pages
key
"router": { "pages": { "pages/index": { "component": "index", "path": "pages/index/index" } }, "entry": "pages/index" }
问题截图
编译环境信息
运行环境信息
The text was updated successfully, but these errors were encountered:
No branches or pull requests
bug描述
router.config.js 中配置的 path 必须带
/
,这样在编译成快应用的时候也会出现/
,但是快应用的路由配置规定不能以/
开头。复现bug的步骤
例如这样配置 cml 项目的 router.config.js:
编译成的快应用的路由:
pages
里面的key
不能以/
开始,下面这样才是合法的:问题截图
编译环境信息
运行环境信息
The text was updated successfully, but these errors were encountered: