diff --git a/src/api/option.js b/src/api/option.js index 4bdca458..5c97dc55 100644 --- a/src/api/option.js +++ b/src/api/option.js @@ -11,6 +11,16 @@ optionApi.listAll = () => { }) } +optionApi.listByKeys = keys => { + return service({ + url: `/api/admin/options/map_keys`, + method: 'get', + params: { + keys: keys + } + }) +} + optionApi.save = options => { return service({ url: `${baseUrl}/saving`, diff --git a/src/components/Tools/UserMenu.vue b/src/components/Tools/UserMenu.vue index 35f9e2bb..6429e343 100644 --- a/src/components/Tools/UserMenu.vue +++ b/src/components/Tools/UserMenu.vue @@ -1,31 +1,47 @@