Update color-picker.vue

This commit is contained in:
梁灏 2021-09-16 17:18:20 +08:00
parent fc244b0840
commit 144c32f254

View file

@ -409,7 +409,7 @@ export default {
watch: { watch: {
value(newVal) { value(newVal) {
this.val = changeColor(newVal); this.val = changeColor(newVal || '');
}, },
visible(val) { visible(val) {
this.val = changeColor(this.value || ''); this.val = changeColor(this.value || '');