Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quasar-web-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyễn Hải Sơn
quasar-web-base
Commits
253a3abf
Commit
253a3abf
authored
May 12, 2021
by
Võ Quang Thành Đạt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
efb578ed
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
updateInformationArtist.ts
...ges/cap-nhat-thong-tin-nghe-sy/updateInformationArtist.ts
+1
-2
AddArtist.ts
src/pages/them-nghe-sy/AddArtist.ts
+3
-3
No files found.
src/pages/cap-nhat-thong-tin-nghe-sy/updateInformationArtist.ts
View file @
253a3abf
...
@@ -545,7 +545,6 @@ export default defineComponent({
...
@@ -545,7 +545,6 @@ export default defineComponent({
}))
as
AxiosResponse
<
BaseResponseBody
<
FileUploadType
>>
;
}))
as
AxiosResponse
<
BaseResponseBody
<
FileUploadType
>>
;
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
avatarUploaded
.
value
=
response
.
data
.
data
.
fileName
;
avatarUploaded
.
value
=
response
.
data
.
data
.
fileName
;
console
.
log
(
avatarUploaded
.
value
,
'aksdjaklsdjaklsd'
);
}
}
}
catch
(
error
)
{}
}
catch
(
error
)
{}
};
};
...
@@ -555,7 +554,7 @@ export default defineComponent({
...
@@ -555,7 +554,7 @@ export default defineComponent({
bodyFormData
.
append
(
'file'
,
file
);
bodyFormData
.
append
(
'file'
,
file
);
const
response
=
(
await
api
({
const
response
=
(
await
api
({
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
url
:
'http://cms.vab.xteldev.com/file/upload/'
,
url
:
config
.
API_IMAGE_ENDPOINT
,
method
:
'POST'
,
method
:
'POST'
,
data
:
bodyFormData
,
data
:
bodyFormData
,
}))
as
AxiosResponse
<
BaseResponseBody
<
FileUploadType
>>
;
}))
as
AxiosResponse
<
BaseResponseBody
<
FileUploadType
>>
;
...
...
src/pages/them-nghe-sy/AddArtist.ts
View file @
253a3abf
...
@@ -490,7 +490,7 @@ export default defineComponent({
...
@@ -490,7 +490,7 @@ export default defineComponent({
bodyFormData
.
append
(
'file'
,
file
);
bodyFormData
.
append
(
'file'
,
file
);
const
response
=
(
await
api
({
const
response
=
(
await
api
({
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
url
:
'http://cms.vab.xteldev.com/file/upload'
,
url
:
config
.
API_IMAGE_ENDPOINT
,
method
:
'POST'
,
method
:
'POST'
,
data
:
bodyFormData
,
data
:
bodyFormData
,
}))
as
AxiosResponse
<
BaseResponseBody
<
FileUploadType
>>
;
}))
as
AxiosResponse
<
BaseResponseBody
<
FileUploadType
>>
;
...
@@ -505,7 +505,7 @@ export default defineComponent({
...
@@ -505,7 +505,7 @@ export default defineComponent({
bodyFormData
.
append
(
'file'
,
file
);
bodyFormData
.
append
(
'file'
,
file
);
const
response
=
(
await
api
({
const
response
=
(
await
api
({
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
url
:
'http://cms.vab.xteldev.com/file/upload'
,
url
:
config
.
API_IMAGE_ENDPOINT
,
method
:
'POST'
,
method
:
'POST'
,
data
:
bodyFormData
,
data
:
bodyFormData
,
}))
as
AxiosResponse
<
BaseResponseBody
<
FileUploadType
>>
;
}))
as
AxiosResponse
<
BaseResponseBody
<
FileUploadType
>>
;
...
@@ -523,7 +523,7 @@ export default defineComponent({
...
@@ -523,7 +523,7 @@ export default defineComponent({
bodyFormData
.
append
(
'file'
,
file
);
bodyFormData
.
append
(
'file'
,
file
);
const
response
=
(
await
api
({
const
response
=
(
await
api
({
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
url
:
'http://cms.vab.xteldev.com/file/upload'
,
url
:
config
.
API_IMAGE_ENDPOINT
,
method
:
'POST'
,
method
:
'POST'
,
data
:
bodyFormData
,
data
:
bodyFormData
,
}))
as
AxiosResponse
<
BaseResponseBody
<
FileUploadType
>>
;
}))
as
AxiosResponse
<
BaseResponseBody
<
FileUploadType
>>
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment