Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

this.$options.data() error; viewed, because this.$options prototype has no porps property. #422

Open
chenjing123456 opened this issue May 11, 2022 · 1 comment

Comments

@chenjing123456
Copy link

Describe the bug
this.$options.data() error; viewed, because this.$options prototype has no props property.
image

image

but no use vue-property-decorator,this.$options prototype has props property.
image

image

To Reproduce
Steps to reproduce the behavior:
image

this.$options has no props property。

Expected behavior

before using vue-property-decorator,i can get this.$options.data().

Desktop (please complete the following information):

  • OS: macos
  • Version: "vue-property-decorator": "^8.4.0",
@Alfred-Cyan-Allen
Copy link

碰到一样的问题,想要通过this.param = this.$options.data().param来重置数据,有啥解决办法吗?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants