在生命周期里创建script标签,导入sdk。在方法里通过 window.tt.miniProgram.navigateTo({ url: `/pages/details/details` }); 跳到原生小程序页,报错