mirror of
https://github.com/vastsa/FileCodeBoxFronted.git
synced 2026-11-24 21:58:01 +08:00
fix: share text
This commit is contained in:
1 parent
649deb7563
commit
8ba8cec7b1
1 file changed
+5
-1
@@ -645,7 +645,11 @@ const handleSubmit = async () => {
|
||||
formData.append('text', textContent.value)
|
||||
formData.append('expire_value', expirationValue.value)
|
||||
formData.append('expire_style', expirationMethod.value)
|
||||
response = await api.post('/share/text/', formData)
|
||||
response = await api.post('/share/text/', formData, {
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
if (response && response.code === 200) {
|
||||
|
||||
Reference in new issue
Block a user