修复bug

This commit is contained in:
Leo_Ding 2025-07-07 12:03:16 +08:00
parent 42ee373a62
commit d621e5b26a
4 changed files with 5 additions and 5 deletions

View File

@ -12,8 +12,8 @@ VITE_ROUTER_BASE=/
VITE_ROUTER_HISTORY=hash
# api
# VITE_API_BASIC=https://api.hailin-keji.com
VITE_API_BASIC=http://10.10.1.6:8060
VITE_API_BASIC=https://api.hailin-keji.com
# VITE_API_BASIC=http://10.10.1.6:8060
VITE_API_HTTP=/api/v1/
# storage
VITE_STORAGE_NAMESPACE = gin-admin_local_

View File

@ -142,7 +142,7 @@ function handleOk() {
...values,
img: formData.value.img,
pushAt:dayjs(formData.value.pushAt).format("YYYY-MM-DD"),
typer: 'news'
type: 'news'
}
let result = null
console.log(modal.value.type)

View File

@ -128,7 +128,7 @@ function handleOk() {
...values,
img: formData.value.img,
pushAt:dayjs(formData.value.pushAt).format("YYYY-MM-DD"),
typer: 'banner'
type: 'banner'
}
let result = null
console.log(modal.value.type)

View File

@ -119,7 +119,7 @@ function handleOk() {
})
break
case 'edit':
result = await apis.categorys.updateProductsItem(formData.value.id, params).catch(() => {
result = await apis.categorys.updateItem(formData.value.id, params).catch(() => {
throw new Error(error)
})
break