fix: 🐛 修复打包typescript警告问题

This commit is contained in:
ray
2024-10-08 01:11:09 +08:00
parent ff53ed6060
commit 57bca54848
2 changed files with 2 additions and 2 deletions

View File

@@ -158,5 +158,5 @@ export interface DictDataForm {
/**
* 标签类型
*/
tagType: "success" | "warning" | "info" | "primary" | "danger" | undefined;
tagType?: "success" | "warning" | "info" | "primary" | "danger" | undefined;
}

View File

@@ -261,7 +261,7 @@ function handleSubmitClick() {
if (isValid) {
loading.value = true;
const id = formData.id;
formData.dictCode = dictCode;
formData.dictCode = dictCode.value;
if (id) {
DictDataAPI.update(id, formData)
.then(() => {