1.字典对象的模型为:
const formAdd = ref({name: '',use: 0,todayUse: 0,free: '收费',price: 9.9,num: 1,label: '次',description: '',url: '',method: '',header: '',body: '',response: '',example: '',gift: 1,status: '正常' });
2.对他进行检测,如果某个值长度为0,则报错提示
for (const v in formAdd.value) {if(formAdd.value[v].length === 0){msg('e', '请填写完整' + v);return;}