Skip to content

Commit 795a58b

Browse files
committed
chore: 🔥 fixed reactive property
1 parent beb9478 commit 795a58b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-api-queries",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"description": "Elegant and simple way to build requests for REST API",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ class VueApiQueries {
3636
Vue.mixin({
3737
beforeCreate() {
3838
this.$options.$errors = {} as any
39-
Vue.set(this.$options, '$errors', Validator)
39+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
40+
// @ts-ignore
41+
Vue.util.defineReactive(this.$options, '$errors', Validator)
4042
if (!this.$options.computed) {
4143
this.$options.computed = {}
4244
}

0 commit comments

Comments
 (0)