From 16808e17c455b64e63c7bfe9080298b62fec0f05 Mon Sep 17 00:00:00 2001 From: ruibaby Date: Mon, 8 Apr 2019 15:43:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E6=80=81=E7=94=9F=E6=88=90=E4=B8=BB?= =?UTF-8?q?=E9=A2=98=E8=AE=BE=E7=BD=AE=E9=80=89=E9=A1=B9=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/theme.js | 6 ++ src/views/interface/ThemeList.vue | 91 ++++++++++++++++++++++++++++--- 2 files changed, 89 insertions(+), 8 deletions(-) diff --git a/src/api/theme.js b/src/api/theme.js index 5c603ef0..4ac3d824 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 e0190521..f760a3ec 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 }} + + + + 保存 + + + + +
+
+