-
Notifications
You must be signed in to change notification settings - Fork 32
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
为什么我这样的写法说我找不到路径 #21
Comments
tab 页 |
绝对路径 |
那我就搞不懂了,路由与 src/router/index.js 这个文件是无关的 , 设置页面的标题,好像也不起作用 |
点错了,这个库只是对小程序的路由 api 做了封装,可以用类 vue-router 的形式调用,routes.js 那个文件实际是给 mpvue-entry 使用的,另外在 h5 端可以直接复用 |
那我写 this.$router.push('/src/views/a/a') 还是报错 |
|
你用的是哪个模板,app.json 和打包入口需要修改的 |
我用官方的模板。 |
可以说下方法,怎么修改吗? |
全部复制可以吗? |
你直接加个 viewsEntry 也行 const pagesEntry = getEntry(resolve('./src'), 'pages/**/main.js')
const viewsEntry = getEntry(resolve('./src'), 'views/**/main.js')
const entry = Object.assign({}, appEntry, pagesEntry, viewsEntry) |
我这个属于分包行位了? |
不是啊,建议你直接用我这个模板 |
就是我假如,底部的tab是在pages文件夹, 其他详情页,或者不是主页面都放在了views, 那我是要怎么实现路由跳转? 安装了mpvue-router-patch, 我管理的路由文件是 在src/router/index.js
The text was updated successfully, but these errors were encountered: