wx.navigateToMiniProgram 为什么加了path就不能打开?

小程序 文章 2022-04-09 13:40 566 0 全屏看文

AI助手支持GPT4.0

wx.navigateToMiniProgram 为什么加了path就不能打开?Why can't wx.navigateToMiniProgram be opened after adding path?

wx.navigateToMiniProgram 为什么加了path就不能打开?

wx.navigateToMiniProgram 加了path 跳转后 空白页,没有显示,如果不加path,可以显示首页,即使加了首页的路径在path中,跳转后也是空白页,为什么呢?path路径错误?path: 'pages/index/home/main.html',


wx. Navigatetominiprogram adds path to jump to a blank page, which is not displayed. If you do not add path, you can display the home page. Even if the path with the home page is in the path, it is also a blank page after jump. Why? Path error? path: 'pages/index/home/main. html',

回答:

brave:
path: '/pages/index/home/main',
Mr.Zhao:.html去掉
Maui:

真是太感谢你们了!

-EOF-

AI助手支持GPT4.0