From 31c6e0f5db25e84e31c213d87ef03bcdfc221008 Mon Sep 17 00:00:00 2001 From: cKey <35512826+colinin@users.noreply.github.com> Date: Wed, 1 Jun 2022 13:46:47 +0800 Subject: [PATCH] theme interface url should be under platform services. --- apps/vue/src/api/sys/theme.ts | 4 ++-- .../Platform/Theme/VueVbenAdmin/ThemeSettingController.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/vue/src/api/sys/theme.ts b/apps/vue/src/api/sys/theme.ts index 151b84cc8..931b7c5c0 100644 --- a/apps/vue/src/api/sys/theme.ts +++ b/apps/vue/src/api/sys/theme.ts @@ -3,13 +3,13 @@ import { ThemeSetting } from './model/themeModel'; export const getTheme = () => { return defAbpHttp.get({ - url: '/api/theme/vue-vben-admin', + url: '/api/platform/theme/vue-vben-admin', }); }; export const changeTheme = (themeSetting: ThemeSetting) => { return defAbpHttp.put({ - url: '/api/theme/vue-vben-admin/change', + url: '/api/platform/theme/vue-vben-admin/change', data: themeSetting, }); }; diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Theme.VueVbenAdmin/LINGYUN/Platform/Theme/VueVbenAdmin/ThemeSettingController.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Theme.VueVbenAdmin/LINGYUN/Platform/Theme/VueVbenAdmin/ThemeSettingController.cs index bd0c7a59e..2c229b85e 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Theme.VueVbenAdmin/LINGYUN/Platform/Theme/VueVbenAdmin/ThemeSettingController.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Theme.VueVbenAdmin/LINGYUN/Platform/Theme/VueVbenAdmin/ThemeSettingController.cs @@ -8,7 +8,7 @@ namespace LINGYUN.Platform.Theme.VueVbenAdmin; [Controller] [RemoteService(Name = PlatformRemoteServiceConsts.RemoteServiceName)] -[Route("api/theme/vue-vben-admin")] +[Route("api/platform/theme/vue-vben-admin")] public class ThemeSettingController : AbpControllerBase, IThemeSettingAppService { protected IThemeSettingAppService ThemeSettingAppService { get; }