Browse Source

theme interface url should be under platform services.

pull/599/head
cKey 4 years ago
parent
commit
31c6e0f5db
  1. 4
      apps/vue/src/api/sys/theme.ts
  2. 2
      aspnet-core/modules/platform/LINGYUN.Platform.Theme.VueVbenAdmin/LINGYUN/Platform/Theme/VueVbenAdmin/ThemeSettingController.cs

4
apps/vue/src/api/sys/theme.ts

@ -3,13 +3,13 @@ import { ThemeSetting } from './model/themeModel';
export const getTheme = () => { export const getTheme = () => {
return defAbpHttp.get<ThemeSetting>({ return defAbpHttp.get<ThemeSetting>({
url: '/api/theme/vue-vben-admin', url: '/api/platform/theme/vue-vben-admin',
}); });
}; };
export const changeTheme = (themeSetting: ThemeSetting) => { export const changeTheme = (themeSetting: ThemeSetting) => {
return defAbpHttp.put<void>({ return defAbpHttp.put<void>({
url: '/api/theme/vue-vben-admin/change', url: '/api/platform/theme/vue-vben-admin/change',
data: themeSetting, data: themeSetting,
}); });
}; };

2
aspnet-core/modules/platform/LINGYUN.Platform.Theme.VueVbenAdmin/LINGYUN/Platform/Theme/VueVbenAdmin/ThemeSettingController.cs

@ -8,7 +8,7 @@ namespace LINGYUN.Platform.Theme.VueVbenAdmin;
[Controller] [Controller]
[RemoteService(Name = PlatformRemoteServiceConsts.RemoteServiceName)] [RemoteService(Name = PlatformRemoteServiceConsts.RemoteServiceName)]
[Route("api/theme/vue-vben-admin")] [Route("api/platform/theme/vue-vben-admin")]
public class ThemeSettingController : AbpControllerBase, IThemeSettingAppService public class ThemeSettingController : AbpControllerBase, IThemeSettingAppService
{ {
protected IThemeSettingAppService ThemeSettingAppService { get; } protected IThemeSettingAppService ThemeSettingAppService { get; }

Loading…
Cancel
Save