摘要: 1、引入router : import {useRouter} from 'vue-router' 2、定义 let router = useRouter(); 3、动态添加路由 router.addRoute({name:"users", path: '/User/users', componen 阅读全文
posted @ 2022-10-13 14:02 ziff123 阅读(1125) 评论(0) 推荐(0)
摘要: net core6 webapi接口返回JSON字段首字母自动转成小写,可以在Program.cs里面加 builder.Services.AddControllers().AddJsonOptions(options => { options.JsonSerializerOptions.Prope 阅读全文
posted @ 2022-10-01 16:12 ziff123 阅读(609) 评论(0) 推荐(0)
摘要: <script setup> let addFormVisible = ref(false); function handleAdd(){ addFormVisible = true; //没有生效 } </script> 定义了一个变量 addFormVisible用来控制页面对话框的显示, 在方 阅读全文
posted @ 2022-09-18 10:52 ziff123 阅读(948) 评论(0) 推荐(0)
摘要: 解决办法: 用记事本打开INI文件,点击菜单栏文件-->另存为-->编码选择UTF-8,然后保存就可以了。 C#操作INI工具类: 1 using System; 2 using System.Runtime.InteropServices; 3 using System.Text; 4 using 阅读全文
posted @ 2022-09-13 15:07 ziff123 阅读(167) 评论(0) 推荐(0)
摘要: 1、nuget引用 Microsoft.EntityFrameworkCore Microsoft.EntityFrameworkCore.SqlServer Microsoft.EntityFrameworkCore.SqlServer.Design Microsoft.EntityFramewo 阅读全文
posted @ 2022-07-24 23:26 ziff123 阅读(116) 评论(0) 推荐(0)
摘要: 1、查看头像保存的路径有没有存在Syn_SetPhotoPath 2、如果有处理头像,处理完记得关闭 阅读全文
posted @ 2022-07-07 09:29 ziff123 阅读(35) 评论(0) 推荐(0)
摘要: 1、查看头像照片设置的路径有没有存在Syn_SetPhotoPath 2、如果有处理头像,头像处理完有没有关闭 阅读全文
posted @ 2022-07-07 09:26 ziff123 阅读(78) 评论(0) 推荐(0)
摘要: 1、nuget引用 Microsoft.EntityFrameworkCore Microsoft.EntityFrameworkCore.SqlServer Microsoft.EntityFrameworkCore.SqlServer.Design Microsoft.EntityFramewo 阅读全文
posted @ 2022-07-03 22:22 ziff123 阅读(396) 评论(0) 推荐(0)
摘要: 1、Nuget引入Castle.Core 2、新建CustomInterceptor类,实现IInterceptor接口 1 using Castle.DynamicProxy; 2 using System; 3 using System.Collections.Generic; 4 using 阅读全文
posted @ 2022-06-19 16:15 ziff123 阅读(150) 评论(0) 推荐(0)
摘要: 1、Nuget引入 Autofac、Autofac.Extensions.DependencyInjection 2、Program.cs里面添加注入配置 { //第一种方式注入 builder.Host.UseServiceProviderFactory(new AutofacServicePro 阅读全文
posted @ 2022-06-19 14:54 ziff123 阅读(152) 评论(0) 推荐(0)