fix: remove /
This commit is contained in:
@@ -182,7 +182,7 @@ const getLocalstorageUsed = (nowUsedBit: string) => {
|
||||
}
|
||||
}
|
||||
const getDashboardData = async () => {
|
||||
const response: any = await api.get('/admin/dashboard')
|
||||
const response: any = await api.get('admin/dashboard')
|
||||
dashboardData.totalFiles = response.detail.totalFiles
|
||||
dashboardData.storageUsed = getLocalstorageUsed(response.detail.storageUsed)
|
||||
dashboardData.yesterdaySize = getLocalstorageUsed(response.detail.yesterdaySize)
|
||||
|
||||
@@ -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 }
|
||||
})
|
||||
|
||||
@@ -102,7 +102,7 @@ const convertToSeconds = (time: number, unit: string): number => {
|
||||
|
||||
const refreshData = () => {
|
||||
api({
|
||||
url: '/admin/config/get',
|
||||
url: 'admin/config/get',
|
||||
method: 'get'
|
||||
}).then((res: any) => {
|
||||
config.value = res.detail
|
||||
@@ -164,7 +164,7 @@ const submitSave = () => {
|
||||
}
|
||||
|
||||
api({
|
||||
url: '/admin/config/update',
|
||||
url: 'admin/config/update',
|
||||
method: 'patch',
|
||||
data: formData
|
||||
}).then((res: any) => {
|
||||
|
||||
Reference in New Issue
Block a user