diff --git a/src/api/theme.js b/src/api/theme.js index 5c603ef0a..4ac3d8248 100644 --- a/src/api/theme.js +++ b/src/api/theme.js @@ -39,4 +39,10 @@ themeApi.delete = key => { }) } +themeApi.listOptions = theme => { + return service({ + url: `${baseUrl}/configurations?name=${theme}` + }) +} + export default themeApi diff --git a/src/views/interface/ThemeList.vue b/src/views/interface/ThemeList.vue index e01905211..f760a3ec3 100644 --- a/src/views/interface/ThemeList.vue +++ b/src/views/interface/ThemeList.vue @@ -16,12 +16,10 @@ :alt="theme.properties.name" :src="'http://localhost:8090/' + theme.key + '/screenshot.png'" slot="cover" - /> + >
- - {{ theme.properties.name }} - + {{ theme.properties.name }} 已启用 启用 @@ -41,22 +39,84 @@ - + + +
+ + + + + + + + {{ option.label }} + + + {{ option.label }} + + + + 保存 + + + + +
+
+