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
41c9b3b9
Commit
41c9b3b9
authored
Nov 30, 2022
by
Nguyễn Đức Thắng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
9dc0c804
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
type.ts
src/assets/type.ts
+13
-0
index.vue
src/pages/cau-hinh-trang-chu/index.vue
+2
-2
No files found.
src/assets/type.ts
View file @
41c9b3b9
...
@@ -620,6 +620,19 @@ export type ListBannerConfig = {
...
@@ -620,6 +620,19 @@ export type ListBannerConfig = {
updateTime
:
string
;
updateTime
:
string
;
};
};
export
type
ListHomeConfig
=
{
artistId
:
number
,
artistName
:
{
artistName
:
string
,
id
:
number
},
code
:
string
,
embeddedUrl
:
string
,
id
:
number
,
imageUrl
:
string
,
name
:
string
}
export
type
DetailBannerConfig
=
{
export
type
DetailBannerConfig
=
{
id
:
number
;
id
:
number
;
name
:
string
;
name
:
string
;
...
...
src/pages/cau-hinh-trang-chu/index.vue
View file @
41c9b3b9
...
@@ -88,7 +88,7 @@ import {
...
@@ -88,7 +88,7 @@ import {
FileUploadType
,
FileUploadType
,
ListBannerConfig
,
ListBannerConfig
,
DetailBannerConfig
,
DetailBannerConfig
,
ListHomeConfig
,
AddBannerConfig
,
AddBannerConfig
,
}
from
'src/assets/type'
;
}
from
'src/assets/type'
;
import
{
config
,
API_PATHS
}
from
'src/assets/configurations.example'
;
import
{
config
,
API_PATHS
}
from
'src/assets/configurations.example'
;
...
@@ -198,7 +198,7 @@ export default defineComponent({
...
@@ -198,7 +198,7 @@ export default defineComponent({
name
:
nameBanner
.
value
,
name
:
nameBanner
.
value
,
},
},
}))
as
AxiosResponse
<
}))
as
AxiosResponse
<
BaseResponseBody
<
PaginationResponse
<
List
Banner
Config
[]
>>
BaseResponseBody
<
PaginationResponse
<
List
Home
Config
[]
>>
>
;
>
;
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
if
(
response
.
data
.
error
.
code
===
config
.
API_RES_CODE
.
OK
.
code
)
{
bannerTableRows
.
value
=
response
.
data
.
data
.
data
;
bannerTableRows
.
value
=
response
.
data
.
data
.
data
;
...
...
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