解决:这个项目中 安装好 依赖后, 运行 yarn dev
在浏览器访问:http://localhost:8000
偶尔会出现 报错:getRootContainer.jsx:42 [Vue warn]: injection "Symbol(router)" not found.
at <RootContainer>
fes.js:30 [Vue warn]: injection "Symbol(router view location)" not found.
at <RouterView>
at <DefaultContainer >
at <RootContainer>
fes.js:30 [Vue warn]: Unhandled error during execution of watcher getter
at <RouterView>
at <DefaultContainer >
at <RootContainer>
fes.js:30 [Vue warn]: Unhandled error during execution of setup function
at <RouterView>
at <DefaultContainer >
at <RootContainer>
fes.js:30 [Vue warn]: Unhandled error during execution of beforeMount hook
at <RootContainer>
getRootContainer.jsx:48 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'beforeEach')
at getRootContainer.jsx:48:24
at runtime-core.esm-bundler.js:2879:40
at callWithErrorHandling (runtime-core.esm-bundler.js:199:19)
at callWithAsyncErrorHandling (runtime-core.esm-bundler.js:206:17)
at hook.__weh.hook.__weh (runtime-core.esm-bundler.js:2859:19)
at invokeArrayFns (shared.esm-bundler.js:85:10)
at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js:5346:11)
at ReactiveEffect.run (reactivity.esm-bundler.js:237:19)
at setupRenderEffect (runtime-core.esm-bundler.js:5527:5)
at mountComponent (runtime-core.esm-bundler.js:5301:7)vue-router.mjs:2496 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'value')
at ComputedRefImpl.fn (vue-router.mjs:2496:76)
at refreshComputed (reactivity.esm-bundler.js:391:28)
at get value (reactivity.esm-bundler.js:1654:5)
at ComputedRefImpl.fn (vue-router.mjs:2510:63)
at refreshComputed (reactivity.esm-bundler.js:391:28)
at get value (reactivity.esm-bundler.js:1654:5)
at to.instances.<computed> (vue-router.mjs:2517:53)
at callWithErrorHandling (runtime-core.esm-bundler.js:199:33)
at callWithAsyncErrorHandling (runtime-core.esm-bundler.js:206:17)
at baseWatchOptions.call (runtime-core.esm-bundler.js:6282:47)
解决方法: