@@ -58,7 +58,7 @@
} else {
state.value = props.value;
}
- if (state.value !== '' && typeof props.value === 'string') {
+ if (state.value && typeof props.value === 'string') {
state.disabled = true;
state.disabled = false;
@@ -72,7 +72,7 @@
watch(
() => props.type,
() => {
+ if (props.value && typeof props.value === 'string') {
@@ -59,7 +59,7 @@
@@ -73,7 +73,7 @@
@@ -159,7 +159,6 @@
popupData.title = '编辑';
await getUser({ id: record.id }).then((res) => {
const data = res.row;
- console.log(`edit----data0`, data);
openPopup(true, data);
});
@@ -75,7 +75,6 @@
},
]);
- console.log(`edit data1`, data);
setFieldsValue(data);
@@ -111,8 +111,6 @@
function onCheckChange(evt) {
- console.log(`evt`, evt);
- console.log(`evt.target.checked`, evt.target.checked);
const checked = evt.target.checked;
if (checked) {