微信小程序右上角分享页面找不到路径bug

复制代码
onShareAppMessage() {
    let that = this;
    let path = 'packageCdhlA/pages/acPreviewMS/index?acId=' + that.data.acId +
    '&StoreId=' + that.data.StoreId + '&AcType=1';
    var title = that.data.detail.ActivityInfo.AcTitle; 

    return {
      title,
      path,
      imageUrl: that.data.shareImg || that.data.detail.ActivityInfo.AdUrl,
    };
  },

path 最前边不要加\

下边这种路径会导致找不到页面

let path = '/packageCdhlA/pages/acPreviewMS/index?acId=' + that.data.acId +

'&StoreId=' + that.data.StoreId + '&AcType=1';

相关推荐
计算机程序设计小李同学10 小时前
婚纱摄影集成管理系统小程序
java·vue.js·spring boot·后端·微信小程序·小程序
幽络源小助理13 小时前
SpringBoot+小程序高校素拓分管理系统源码 – 幽络源免费分享
spring boot·后端·小程序
hui函数13 小时前
Python系列Bug修复|如何解决 pip install 安装报错 invalid command ‘bdist_wheel’(缺少 wheel)问题
python·bug·pip
hui函数13 小时前
Python系列Bug修复|如何解决 pip install -r requirements.txt 私有索引未设为 trusted-host 导致拒绝 问题
python·bug·pip
Mr -老鬼13 小时前
移动端跨平台适配技术框架:从发展到展望
android·ios·小程序·uni-app
内存不泄露14 小时前
棋牌预约小程序系统论文
小程序
hui函数14 小时前
Python系列Bug修复|如何解决 pip install 安装报错 Backend ‘setuptools.build_meta’ 不可用 问题
python·bug·pip
hui函数16 小时前
Python系列Bug修复|如何解决 pip install -r requirements.txt 私有仓库认证失败 401 Unauthorized 问题
python·bug·pip
hui函数16 小时前
Python系列Bug修复|如何解决 pip install -r requirements.txt 子目录可编辑安装缺少 pyproject.toml 问题
python·bug·pip
计算机徐师兄16 小时前
Java基于微信小程序的食堂线上预约点餐系统【附源码、文档说明】
java·微信小程序·食堂线上预约点餐系统小程序·食堂线上预约点餐微信小程序·java食堂线上预约点餐小程序·食堂线上预约点餐小程序·食堂线上预约点餐系统微信小程序