diff --git a/frontend/src/views/admin/Suppliers.vue b/frontend/src/views/admin/Suppliers.vue
index 9cbdc2e..cd48f01 100644
--- a/frontend/src/views/admin/Suppliers.vue
+++ b/frontend/src/views/admin/Suppliers.vue
@@ -44,7 +44,7 @@
-
+
{
return suppliers.value.slice(start, start + pageSize)
})
const form = reactive({ username: '', email: '', password: '' })
-const authForm = reactive({ type: 'category', ref_id: 0 })
+const authForm = reactive<{ type: string; ref_id: number | undefined }>({ type: 'category', ref_id: undefined })
const optionsList = ref<{ id: number; name: string }[]>([])
const loadingOptions = ref(false)
@@ -103,13 +103,13 @@ async function addSupplier() {
async function authorize(id: number) {
authSupplierId.value = id
authForm.type = 'category'
- authForm.ref_id = 0
+ authForm.ref_id = undefined
await loadOptions()
showAuth.value = true
}
async function handleTypeChange() {
- authForm.ref_id = 0
+ authForm.ref_id = undefined
await loadOptions()
}