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:
zuohuaijun 2024-07-17 11:18:46 +08:00
commit 09f3e285c7
3 changed files with 4 additions and 2 deletions

View File

@ -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
{ {

View File

@ -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: '',

View File

@ -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) } },
// //