Fork自 DCloud / uni-starter
export default function(){ console.log(uni.getSystemInfoSync().platform) let userprotocol = uni.getStorageSync('userprotocol'); console.log('userprotocol',userprotocol); if(!userprotocol){ uni.navigateTo({ url:'/pages/uni-agree/uni-agree', animationType:"none" }) } }