收藏
回答

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报错

这是为什么?

回答关注问题邀请回答
收藏

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
    有用
    回复
登录 后发表内容