_this.$set is not a function
时间: 2024-05-28 08:07:39 浏览: 128
_this.$set is a function provided by the Vue.js framework. It is used to update the value of a reactive property in a Vue instance. The error message "_this.$set is not a function" usually occurs when you try to use _this.$set but it is not defined.
There are several reasons why this error might occur. One common cause is that the Vue instance has not been properly initialized or the Vue.js library has not been loaded. Another possible cause is that there is a syntax error or typo in your code that is preventing the Vue.js framework from recognizing _this.$set as a valid function.
To fix this error, you can try checking that the Vue.js library has been properly loaded, and that your Vue instance has been initialized correctly. You can also check for any syntax errors or typos in your code that might be causing the issue.
阅读全文