路由跳转的时候真机进入fail
redirectTo:fail page /pages/region/region
is not found
我的页面真实存在,不知道怎么办了,弄了一天@
pages.json配置
{
"path": "pages/region/region",
"style": {
"navigationStyle": "custom", // 隐藏系统导航栏
"navigationBarTextStyle": "white",
"enablePullDownRefresh": false
}
},
//数组
routerlist: [{
id: 45,
title: "明厨亮灶",
url: "../../static/ICON/indexMenu/qyxx.png",
isShow: true,
roter: "",
regionRoter:"region",
pid: 0,
type: "1",
},
{
id: 45,
title: "人员管理",
url: "../../static/ICON/qyxx-Menu/Schoolfiles.png",
isShow: true,
roter: "expiredHealthCertificate",
regionRoter:"region",
pid: 0,
type: "1",
},
{
id: 45,
title: "食安台账",
url: "../../static/ICON/indexMenu/spaq.png",
isShow: true,
roter: "spaq",
regionRoter:"region",
pid: 0,
type: "1",
},
// znyj
{
id: 45,
title: "智能预警",
url: "../../static/ICON/indexMenu/aiyj.png",
isShow: true,
roter: "znyj",
regionRoter:"region",
pid: 0,
type: "1",
},
{
id: 45,
title: "企业自查",
url: "../../static/ICON/indexMenu/qyzc.png",
isShow: true,
roter: "qyzc",
regionRoter:"region",
pid: 0,
type: "1",
},
{
id: 45,
title: "食安资讯",
url: "../../static/ICON/qyxx-Menu/tscl.png",
isShow: true,
roter: "sazx",
regionRoter:"region",
pid: 0,
type: "1",
}, {
id: 45,
title: "监管信息",
url: "../../static/ICON/indexMenu/qyzc.png",
isShow: true,
roter: "jgxx",
regionRoter:"region",
pid: 0,
type: "1",
},
{
id: 45,
title: "个人中心",
url: "../../static/ICON/indexMenu/userinfo.png",
isShow: true,
roter: "userinfo",
regionRoter:"region",
pid: 0,
type: "1",
},
{
id: 45,
title: "食安指数",
url: "../../static/ICON/indexMenu/xx.png",
isShow: true,
roter: "sazs",
regionRoter:"region",
pid: 0,
type: "1",
},
],
//跳转方法
gomenu(item) {
let _this=this
_this.roterUser(item);
console.log(item)
if (item.roter == "aiyj" && this.recordslist.length == 0) {
uni.showToast({
icon: 'none',
title: '请先到设备管理-企业列表添加企业'
})
} else {
uni.navigateTo({
url:"../" + item.regionRoter + "/" + item.regionRoter,
fail(error) {
console.log("error",error)
}
})
console.log("================================================")
console.log("../" + item.regionRoter + "/" + item.regionRoter)
}
},