interface FormTable {
id: string;
code: string;
name: string;
number: string;
version_num: string;
power: string;
price_type: number;
first_price: string;
second_price: string;
third_price: string;
remark: string;
type: string;
create_time: string;
update_time: string;
}
let formTable = reactive<FormTable>({
id: "",
code: "",
name: "",
number: "",
version_num: "",
power: "",
price_type: 1,
first_price: "",
second_price: "",
third_price: "",
remark: "",
type: "",
create_time: "",
update_time: "",
});
formTable是reactive定义的吗,直接赋值一个新对象导致丢失响应式了,可以换ref