|
@@ -178,7 +178,8 @@ const changeConsumableSelect = async (id: string) => {
|
|
|
watch(
|
|
|
() => prop.modelValue,
|
|
|
async (val: string) => {
|
|
|
- let configData=JSON.parse(val);
|
|
|
+ if(val&&val.trim().length>0){
|
|
|
+ let configData=JSON.parse(val);
|
|
|
const tableData = ref<TableRow[]>([]);
|
|
|
|
|
|
configData.forEach((item:any) => {
|
|
@@ -192,6 +193,8 @@ watch(
|
|
|
|
|
|
tableData.value.push(row);
|
|
|
});
|
|
|
+ }
|
|
|
+
|
|
|
console.log(configData, "?????*************????????????????");
|
|
|
},
|
|
|
{ deep: true, immediate: true }
|