收藏
回答

win10和win8系统下开发工具显示不同

问题模块 框架类型 问题类型 操作系统 工具版本
开发者工具 小程序 Bug Windows 1807120

在app.js里写下

wx.getSetting({

success:data=>{

if (data.authSetting['scope.userInfo']){

wx.getUserInfo({

success:res=>{

console.log(res)

}

})

console.log(data)

}else{

wx.reLaunch({

url: '../3D/3D',

})

}

}

})

在win10上都能正常跳转,在win8下会报3D/3Dis not in app.json

将../3D/3D改成pages/3D/3D就可以在win8下正常运行,win10报错

这是为什么?

最后一次编辑于  2018-07-17  (未经腾讯允许,不得转载)
邀请回答
复制链接收藏投诉关注问题回答

2 个回答

  • LastLeaf
    LastLeaf
    2018-07-17

    当前页面的路径,这个 reLaunch 目标 page 文件的路径,分别是什么呢?

    2018-07-17
    赞同
    回复
  • 💯
    💯
    2018-07-18

    app.json里写的是

    {

    "pages": [

    "pages/index/index",

    "pages/carport/carinfo/carinfo",

    "pages/carport/recordDetail/recordDetail",

    "pages/carport/carpayrecord/carpayrecord",

    "pages/carport/carrenew/carrenew",

    "pages/carport/allcar/allcar",

    "pages/tttt/tttt",

    "pages/three/three",

    "pages/canvasimg/canvasimg",

    "pages/canvas/canvas",

    "pages/tx/tx",

    "pages/logo/logo",

    "pages/3D/3D",

    "pages/one/one",

    "pages/two/two",

    "pages/logs/logs"

    ],


    2018-07-18
    赞同
    回复