const DIC = {
vaild: [{
label: '否',
value: '0'
},
{
label: '是',
value: '1'
}
]
}
如果实际值为boolean时,报错如下:
[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "value"
found in
---> at D:\workspace-sts\my-avue\packages\crud\src\crud-radio.vue
at D:\workspace-sts\my-avue\packages\crud\src\main.vue
at D:\workspace-sts\my-avue\src\components\basic-container\main.vue
at D:\workspace-sts\my-avue\src\views\admin\smartbi\index.vue
... (1 recursive calls)
at D:\workspace-sts\my-avue\src\page\index\index.vue
at D:\workspace-sts\my-avue\src\App.vue