引入hello uni-app的原生导航没有显示,请问是什么原因?
{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/tabbar",
"style": {
"navigationBarTitleText": "原生导航"
}
},{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "21324"
}
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
}
}
page的代码,用uni-app新建的项目直接引入hello uni-app 的原生导航,里面代码没有更改
5***@qq.com (作者)
Module parse failed: Unexpected token (1:0)
14:49:23.597 You may need an appropriate loader to handle this file type.
14:49:23.601 | <template>
14:49:23.605 | <div>
14:49:23.605 | <tabs @change="changeTab" :index="tabIndex">
报这个错误
2018-11-21 14:50
Trust
回复 5***@qq.com:上传下可以重现问题的项目
2018-11-21 14:57
5***@qq.com (作者)
回复 Trust:已经上传
2018-11-21 15:32
Trust
回复 5***@qq.com:调整下目录,不要在 nvue 文件所在的目录放其它页面。
2018-11-21 15:34
5***@qq.com (作者)
回复 Trust:嗯,只放了一个nvue还是不行
2018-11-21 15:49
Trust
回复 5***@qq.com:没看明白?不要在 nvue 的目录下放其它页面,其它页面放在别的目录下。
2018-11-21 15:50
5***@qq.com (作者)
回复 Trust:又增加了一个目录放nvue可以是还不行
2018-11-21 16:02
Trust
回复 5***@qq.com:参考附件吧
2018-11-21 16:08
5***@qq.com (作者)
回复 Trust:谢谢,真机确实可以,不过虚拟机不行,我刚刚都是在虚拟运行的
2018-11-21 16:18