[@ionic/vue Warning]: The view you are trying to render for path /tabs/tab1 does not have the required <ion-page> component. Transitions and lifecycle methods may not work as expected.See https://ionicframework.com/docs/vue/navigation#ionpage for more information.
IonRouterOutlet.ts:29 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'classList')at isViewVisible (IonRouterOutlet.ts:29:17)at handlePageTransition (IonRouterOutlet.ts:327:9)at setupViewItem (IonRouterOutlet.ts:488:9)at watch.deep (IonRouterOutlet.ts:112:13)at callWithErrorHandling (runtime-core.esm-bundler.js:193:18)at callWithAsyncErrorHandling (runtime-core.esm-bundler.js:201:17)at job (runtime-core.esm-bundler.js:1943:9)at callWithErrorHandling (runtime-core.esm-bundler.js:193:32)at flushJobs (runtime-core.esm-bundler.js:401:9)
什么是sync.Once
sync.Once 是 Go 语言中的一种同步原语,用于确保某个操作或函数在并发环境下只被执行一次。它只有一个导出的方法,即 Do,该方法接收一个函数参数。在 Do 方法被调用后,该函数将被执行,而且只会执行一…