f12控制台报错
Uncaught (in promise) TypeError: api.now is not a function
at eval (vue-router.esm-bundler.js?6c02:2489:1)
at eval (vue-router.esm-bundler.js?6c02:3296:1)
at Array.forEach (<anonymous>)
at triggerError (vue-router.esm-bundler.js?6c02:3296:1)
at eval (vue-router.esm-bundler.js?6c02:3037:1)
解决
vue-router降低版本☞ 4.0.0 - 4.0.10版本
npm uni vue-router
npm i vue-router@4.0.1
重启项目即可
参考原创作者:小羊羔1997
vue3报错:Uncaught (in promise) TypeError: api.now is not a function_小羔子1997的博客-CSDN博客