fix: remove /

This commit is contained in:
Lan
2025-03-06 00:25:18 +08:00
parent fb331a9f45
commit 64e8d8c117
5 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -459,7 +459,7 @@ const closeEditModal = () => {
const handleUpdate = async () => {
try {
await api({
url: '/admin/file/update',
url: 'admin/file/update',
method: 'patch',
data: editForm.value
})
@@ -474,7 +474,7 @@ const handleUpdate = async () => {
const downloadFile = async (id: number) => {
try {
const response = await api({
url: '/admin/file/download',
url: 'admin/file/download',
method: 'get',
params: { id },
responseType: 'blob'
@@ -502,7 +502,7 @@ const downloadFile = async (id: number) => {
const deleteFile = async (id: number) => {
try {
await api({
url: '/admin/file/delete',
url: 'admin/file/delete',
method: 'delete',
data: { id }
})