参考demo:this.thimeOutId = setTimeout(() => { router.replaceUrl({ url: 'pages/LoginPage' }).catch((err: Error) => { console.log(err.message, error.name) }) }, 2000)
参考demo: