摘要: 一、登录Id的传值 1、传值 if (res.data.code !="") { this.$message({ message: "登陆成功", type: "success", }); //传值 sessionStorage.setItem('userid',res.data.AId) this 阅读全文
posted @ 2021-10-27 21:46 魔术人生 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 一、上下文操作 创建Dal文件夹创建上下文类 引用:using Microsoft.EntityFrameworkCore; public class AppDbcontext:DbContext { public AppDbcontext(DbContextOptions<AppDbcontext 阅读全文
posted @ 2021-10-12 21:31 魔术人生 阅读(155) 评论(0) 推荐(1) 编辑
摘要: 一、后台Dal层多条数据的查看详情 创建一个ViewModel的类 放入需要查看详情的字段 方便调用 /// <summary> /// 订单详情 /// </summary> /// <param name="oId"></param> /// <returns></returns> public 阅读全文
posted @ 2021-09-23 22:09 魔术人生 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 一、点击事件传值 <router-link :to="{path:'/Particulars/'+item.DId}"> <img :src="item.AMadeImg" class="image" style="width: 232px; height: 232px" /> <div style 阅读全文
posted @ 2021-09-16 21:55 魔术人生 阅读(605) 评论(0) 推荐(0) 编辑
摘要: 一、后台代码 /// <summary> /// 递归 /// </summary> /// <param name="menus"></param> /// <param name="parentId"></param> /// <returns></returns> public List<Ts 阅读全文
posted @ 2021-09-15 22:08 魔术人生 阅读(141) 评论(0) 推荐(1) 编辑
摘要: 一、NLog日志 1、在要使用日志的地方点击NewGet管理包,从中下载NLog文件 2、在要使用日志的API中创建一个config后缀文件,并复制粘贴 <?xml version="1.0" encoding="utf-8" ?> <nlog xmlns="http://www.nlog-proj 阅读全文
posted @ 2021-09-14 22:17 魔术人生 阅读(201) 评论(0) 推荐(1) 编辑
摘要: 一、组件 1、组件的使用分成三个步骤: 创建组件构造器 注册组件 使用组件 1、创建组键 2、注册组键 3、使用组键 2、props的值有两种方式: 方式一:字符串数组,数组中的字符串就是传递时的名称。 方式二:对象,对象可以设置传递时的类型,也可以设置默认值等。 二、slot插槽 1、在子组件中, 阅读全文
posted @ 2021-09-13 22:05 魔术人生 阅读(147) 评论(0) 推荐(1) 编辑
摘要: 一、API后台操作 1、跨域 两个引用 using System.Web.Http; using System.Web.Http.Cors; 配置方式 //全局跨域 config.EnableCors(new EnableCorsAttribute("*", "*", "*")); 2、API代码 阅读全文
posted @ 2021-09-10 20:27 魔术人生 阅读(192) 评论(0) 推荐(1) 编辑
摘要: 一、控制器操作 引用两个 using System.Web; using System.IO; 在控制器中 [HttpPost,Route("api/upload")] public IHttpActionResult UpLoad() { //一、 //var httpFile = HttpCon 阅读全文
posted @ 2021-09-09 22:11 魔术人生 阅读(98) 评论(0) 推荐(1) 编辑
摘要: 一、页面初始显示 1、在router下面Js index更改默认显示路径 2、通过npm install axios -S 安装axios的相关依赖 在终端运行,打开Main进行添加axios的引用如 2、3序号 3、Vs Code的代码操作和链接API方法 <template> <table> < 阅读全文
posted @ 2021-09-08 21:35 魔术人生 阅读(89) 评论(0) 推荐(1) 编辑
复制代码