mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 07:22:32 -05:00
refactor routes
This commit is contained in:
1 parent
20ec614d3a
commit
ca7b9671f2
19 files changed
+173
-43
No files matched your search
@@ -202,7 +202,7 @@ export default {
|
||||
MarkdownContent,
|
||||
IconArrowsDiagonalMinimize2
|
||||
},
|
||||
inject: ['baseUrl', 't'],
|
||||
inject: ['baseUrl', 'fetchOptions', 't'],
|
||||
props: {
|
||||
field: {
|
||||
type: Object,
|
||||
@@ -443,6 +443,7 @@ export default {
|
||||
|
||||
return fetch(this.baseUrl + '/api/attachments', {
|
||||
method: 'POST',
|
||||
headers: { ...this.fetchOptions.headers },
|
||||
body: formData
|
||||
}).then(async (resp) => {
|
||||
if (resp.status === 422 || resp.status === 500) {
|
||||
|
||||
Reference in new issue
Block a user