我目前正在Vue Js项目中使用element-ui版本2.14.1。我只是按需要导入select组件,这是element在这里推荐的。在我使用select组件的每个组件中,都会在控制台中得到这个错误。
[Vue warn]: Computed property "validateState" was assigned to but it has no setter.
found in
---> <ElInput> at packages/input/src/input.vue
<ElSelect> at packages/sele
在下面的代码中,我尝试使用getTranslation对象来映射originalKeys数组中的值,并将值推送到一个新的数组allKeys中。
但是ESLint给了我这个错误,Unexpected side effect in "getkeys" computed property.
我尝试将getkey函数转换为方法,但我认为每次调用方法以完成转换都是没有意义的。我怎样才能解决这个问题?
<template>
<select v-model="selected">
<option v-for="key in