使用wx.navigateTo前已经配置了app.json以及对应js文件中url却报错找不到文件?

小程序 文章 2022-02-24 09:40 391 0 全屏看文

AI助手支持GPT4.0

使用wx.navigateTo前已经配置了app.json以及对应js文件中url却报错找不到文件?Before using wx.navigateTo, you have configured app.json and the url in the corresponding js file, but an error is reported that the file cannot be found?

使用wx.navigateTo前已经配置了app.json以及对应js文件中url却报错找不到文件?

截图如下:

The screenshot is as follows:

回答:

微盟:

你好 这里去掉

幻梦:谢谢大佬
老张:

.wxml去掉

zy:

wx.navigateTo({

url: `/pages/mainpages/mainmap`,

})


-EOF-

AI助手支持GPT4.0