b***@qq.com
b***@qq.com
  • 发布:2024-10-02 13:10
  • 更新:2024-10-02 13:10
  • 阅读:63

【报Bug】Cannot read properties of undefined (reading '$vm')

分类:uni-app

产品分类: uniapp/H5

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win11

HBuilderX类型: 正式

HBuilderX版本号: 4.29

浏览器平台: Edge

浏览器版本: 版本 126.0.2592.113 (正式版本) (64 位)

项目创建方式: HBuilderX

操作步骤:

index.js:16
[Vue warn]: Unhandled error during execution of created hook
at <PageMeta>
at <Index>
at <View>
at <Index>
at <View>
at <Index>
at <View>
at <View>
at <View>
at <View>
at <View>
at <Index>
at <Index>
at <AsyncComponentWrapper>
at <PageBody>
at <Page>
at <Anonymous>
at <KeepAlive>
at <RouterView>
at <Layout>
at <App>
index.js:16

TypeError: Cannot read properties of undefined (reading '$vm')
at Proxy.created (page-meta.vue:100:25)
at callWithErrorHandling (vue.runtime.esm.js:1418:33)
at callWithAsyncErrorHandling (vue.runtime.esm.js:1425:17)
at callHook$1 (vue.runtime.esm.js:4969:3)
at applyOptions (vue.runtime.esm.js:4884:5)
at finishComponentSetup (vue.runtime.esm.js:9089:7)
at handleSetupResult (vue.runtime.esm.js:9040:3)
at setupStatefulComponent (vue.runtime.esm.js:9009:7)
at setupComponent (vue.runtime.esm.js:8941:36)
at mountComponent (vue.runtime.esm.js:7265:7)

预期结果:

index.js:16
[Vue warn]: Unhandled error during execution of created hook
at <PageMeta>
at <Index>
at <View>
at <Index>
at <View>
at <Index>
at <View>
at <View>
at <View>
at <View>
at <View>
at <Index>
at <Index>
at <AsyncComponentWrapper>
at <PageBody>
at <Page>
at <Anonymous>
at <KeepAlive>
at <RouterView>
at <Layout>
at <App>
index.js:16

TypeError: Cannot read properties of undefined (reading '$vm')
at Proxy.created (page-meta.vue:100:25)
at callWithErrorHandling (vue.runtime.esm.js:1418:33)
at callWithAsyncErrorHandling (vue.runtime.esm.js:1425:17)
at callHook$1 (vue.runtime.esm.js:4969:3)
at applyOptions (vue.runtime.esm.js:4884:5)
at finishComponentSetup (vue.runtime.esm.js:9089:7)
at handleSetupResult (vue.runtime.esm.js:9040:3)
at setupStatefulComponent (vue.runtime.esm.js:9009:7)
at setupComponent (vue.runtime.esm.js:8941:36)
at mountComponent (vue.runtime.esm.js:7265:7)

实际结果:

index.js:16
[Vue warn]: Unhandled error during execution of created hook
at <PageMeta>
at <Index>
at <View>
at <Index>
at <View>
at <Index>
at <View>
at <View>
at <View>
at <View>
at <View>
at <Index>
at <Index>
at <AsyncComponentWrapper>
at <PageBody>
at <Page>
at <Anonymous>
at <KeepAlive>
at <RouterView>
at <Layout>
at <App>
index.js:16

TypeError: Cannot read properties of undefined (reading '$vm')
at Proxy.created (page-meta.vue:100:25)
at callWithErrorHandling (vue.runtime.esm.js:1418:33)
at callWithAsyncErrorHandling (vue.runtime.esm.js:1425:17)
at callHook$1 (vue.runtime.esm.js:4969:3)
at applyOptions (vue.runtime.esm.js:4884:5)
at finishComponentSetup (vue.runtime.esm.js:9089:7)
at handleSetupResult (vue.runtime.esm.js:9040:3)
at setupStatefulComponent (vue.runtime.esm.js:9009:7)
at setupComponent (vue.runtime.esm.js:8941:36)
at mountComponent (vue.runtime.esm.js:7265:7)

bug描述:

index.js:16
[Vue warn]: Unhandled error during execution of created hook
at <PageMeta>
at <Index>
at <View>
at <Index>
at <View>
at <Index>
at <View>
at <View>
at <View>
at <View>
at <View>
at <Index>
at <Index>
at <AsyncComponentWrapper>
at <PageBody>
at <Page>
at <Anonymous>
at <KeepAlive>
at <RouterView>
at <Layout>
at <App>
index.js:16

TypeError: Cannot read properties of undefined (reading '$vm')
at Proxy.created (page-meta.vue:100:25)
at callWithErrorHandling (vue.runtime.esm.js:1418:33)
at callWithAsyncErrorHandling (vue.runtime.esm.js:1425:17)
at callHook$1 (vue.runtime.esm.js:4969:3)
at applyOptions (vue.runtime.esm.js:4884:5)
at finishComponentSetup (vue.runtime.esm.js:9089:7)
at handleSetupResult (vue.runtime.esm.js:9040:3)
at setupStatefulComponent (vue.runtime.esm.js:9009:7)
at setupComponent (vue.runtime.esm.js:8941:36)
at mountComponent (vue.runtime.esm.js:7265:7)

2024-10-02 13:10 负责人:无 分享
已邀请:

要回复问题请先登录注册