你的小程序是否用云函数(云开发)来写的,如果是则
需要在 project.config.json里面加上 "cloudfunctionRoot": "cloudfunctions/",表示云函数下主页的路径(相对路径)
如果不是,则
project.config.json里面只要一行 "miniprogramRoot": "/", 而不用上面那个即可。.
miniprogramRoot | Path String | 指定小程序源码的目录(需为相对路径) |
你的小程序是否用云函数(云开发)来写的,如果是则
需要在 project.config.json里面加上 "cloudfunctionRoot": "cloudfunctions/",表示云函数下主页的路径(相对路径)
如果不是,则
project.config.json里面只要一行 "miniprogramRoot": "/", 而不用上面那个即可。.
miniprogramRoot | Path String | 指定小程序源码的目录(需为相对路径) |