/** 登录成功后跳转到首页 */
uni.switchTab({
url: "/pages/space",
success: () => toast("登录成功"),
});
页面是有的,保证是不会路径有错误的。
错误信息
vue-router.esm-bundler.js:2489 Uncaught (in promise) TypeError: api.now is not a function
at vue-router.esm-bundler.js:2489:31
at vue-router.esm-bundler.js:3296:37
at Array.forEach (<anonymous>)
at triggerError (vue-router.esm-bundler.js:3296:18)
at vue-router.esm-bundler.js:3037:17
具体地方: