Merge pull request '🌃调整水印获取IP的方法' (#61) from KaneLeung/Admin.NET.Pro:main into main
Reviewed-on: http://101.43.53.74:3000/Admin.NET/Admin.NET.Pro/pulls/61
This commit is contained in:
commit
09f3e285c7
@ -277,7 +277,7 @@ public class SysAuthService : IDynamicApiController, ITransient
|
|||||||
// 获取水印文字(若系统水印为空则全局为空)
|
// 获取水印文字(若系统水印为空则全局为空)
|
||||||
var watermarkText = await _sysConfigService.GetConfigValue<string>(ConfigConst.SysWebWatermark);
|
var watermarkText = await _sysConfigService.GetConfigValue<string>(ConfigConst.SysWebWatermark);
|
||||||
if (!string.IsNullOrWhiteSpace(watermarkText))
|
if (!string.IsNullOrWhiteSpace(watermarkText))
|
||||||
watermarkText += $"-{user.RealName}"; // $"-{user.RealName}-{_httpContextAccessor.HttpContext.GetRemoteIp()}-{DateTime.UtcNow}";
|
watermarkText += $"-{user.RealName}"; // $"-{user.RealName}-{_httpContextAccessor.HttpContext.GetRemoteIpAddressToIPv4(true)}-{DateTime.UtcNow}";
|
||||||
|
|
||||||
return new LoginUserOutput
|
return new LoginUserOutput
|
||||||
{
|
{
|
||||||
|
|||||||
@ -111,7 +111,7 @@ const state = reactive({
|
|||||||
},
|
},
|
||||||
localPageParam: {
|
localPageParam: {
|
||||||
pageSize: 50 as number,
|
pageSize: 50 as number,
|
||||||
defaultSort: { field: 'orderNo', order: 'asc', descStr: 'desc' },
|
defaultSort: { field: 'id', order: 'asc', descStr: 'desc' },
|
||||||
},
|
},
|
||||||
visible: false,
|
visible: false,
|
||||||
title: '',
|
title: '',
|
||||||
|
|||||||
@ -119,6 +119,8 @@ const options = useVxeTable<SysRegion>(
|
|||||||
},
|
},
|
||||||
// vxeGrid配置参数(此处可覆写任何参数),参考vxe-table官方文档
|
// vxeGrid配置参数(此处可覆写任何参数),参考vxe-table官方文档
|
||||||
{
|
{
|
||||||
|
stripe: false,
|
||||||
|
checkboxConfig: { range: false },
|
||||||
// 代理配置
|
// 代理配置
|
||||||
proxyConfig: { autoLoad: true, ajax: { query: ({ page, sort }) => handleQueryApi(page, sort) } },
|
proxyConfig: { autoLoad: true, ajax: { query: ({ page, sort }) => handleQueryApi(page, sort) } },
|
||||||
// 排序配置
|
// 排序配置
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user