06 2023 档案

摘要://Program.cs 中注册builder.Services.AddMemoryCache();//缓存 https://learn.microsoft.com/zh-cn/dotnet/core/extensions/caching#in-memory-caching 阅读全文
posted @ 2023-06-28 10:10 小杨观世界 阅读(111) 评论(0) 推荐(0) 编辑
摘要://Program.cs里面使用// global cors policy app.UseCors(x => x .AllowAnyMethod() .AllowAnyHeader() .SetIsOriginAllowed(origin => true) // allow any origin . 阅读全文
posted @ 2023-06-28 10:07 小杨观世界 阅读(101) 评论(0) 推荐(0) 编辑
摘要:1、npm 安装插件 npm install -S uuid 2、生成随机字符串import { v4 as uuidv4 } from 'uuid' 3、用uuidv4()获取随机生成的字符串 sign.value = uuidv4(); 阅读全文
posted @ 2023-06-28 09:21 小杨观世界 阅读(51) 评论(0) 推荐(0) 编辑
摘要:yarn upgrade 阅读全文
posted @ 2023-06-21 10:26 小杨观世界 阅读(1) 评论(0) 推荐(0) 编辑
摘要:解决方式一: tsconfig.json里添加 "forceConsistentCasingInFileNames":false 解决方式二:https://github.com/ant-design/pro-components/issues/6592#issuecomment-150135654 阅读全文
posted @ 2023-06-21 09:01 小杨观世界 阅读(2551) 评论(1) 推荐(2) 编辑
摘要:var list = new List<string>(); for (int i = 0; i < 12; i++) { list.Add($@"{DateTime.Today.AddHours(DateTime.Now.Hour - i)}:00"); } 阅读全文
posted @ 2023-06-14 11:56 小杨观世界 阅读(104) 评论(0) 推荐(0) 编辑
摘要:display: flex; justify-content: center; align-items: center; 阅读全文
posted @ 2023-06-01 12:08 小杨观世界 阅读(3) 评论(0) 推荐(0) 编辑