数据结构优化
This commit is contained in:
@@ -344,7 +344,7 @@ const handlePaste = async (e: ClipboardEvent) => {
|
||||
formData.append('storageType', 'local')
|
||||
|
||||
const token = localStorage.getItem('token')
|
||||
const response = await fetch('http://localhost:8081/api/admin/attachments/upload', {
|
||||
const response = await fetch('/api/admin/attachments/upload', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
...(token ? { Authorization: `Bearer ${token}` } : {})
|
||||
|
||||
Reference in New Issue
Block a user