2022年8月21日

asp .net api 接收数组

摘要: public class QuestiondetailsDto { // public string? name {get;set;} public List<QuestionDto> list {get;set;} = new List<QuestionDto>(); // public List 阅读全文

posted @ 2022-08-21 20:50 祖国小黄花 阅读(91) 评论(0) 推荐(0) 编辑

2022年8月4日

asp .net core类似模糊查询Contains

摘要: type = type.Where(x => x.Articletitle.Contains(keyword)||x.Articlecontent.Contains(keyword)||x.Alias!.Contains(keyword)); 阅读全文

posted @ 2022-08-04 20:10 祖国小黄花 阅读(157) 评论(0) 推荐(0) 编辑

2022年8月2日

<router-link>如何跳转传递id

摘要: 传值: <router-link :to="{path:'/Cmswenzpl',query:{id:formdata.articleId}}">{{formdata.articletitle}}</router-link> 取值:this.$route.query.id 阅读全文

posted @ 2022-08-02 07:56 祖国小黄花 阅读(104) 评论(0) 推荐(0) 编辑

2022年7月30日

asp .net core实现连表查询

摘要: var userinfo=_uploadArticles.Table.Where(x=>x.Examine==false).Join(_appusrinfo.Table,x=>x.UserinfoId,y=>y.AppUserId,(x,y)=>new{x.Articlecontent,x.Arti 阅读全文

posted @ 2022-07-30 21:14 祖国小黄花 阅读(230) 评论(0) 推荐(0) 编辑

2022年7月28日

关于.net core 接口拿id

摘要: public async Task<string> UserInfo( AppUserInfo model, Guid id) { var userinfoid=id; var userInfo = await _appUserInfo.GetByIdAsync(id); // var user = 阅读全文

posted @ 2022-07-28 16:11 祖国小黄花 阅读(87) 评论(0) 推荐(0) 编辑

2022年7月24日

<router like>和router.push的区别

摘要: // this.$router.push("/cmscontent"),使用方法整个块都可以跳转; // <router like>当点击文字时才有跳转 阅读全文

posted @ 2022-07-24 09:41 祖国小黄花 阅读(70) 评论(0) 推荐(0) 编辑

2022年7月19日

VUE3 createWebHistory和createWebHashHistory

摘要: createWebHistory --路由模式路径不带#号(生产环境下不能直接访问项目,需要nginx转发) createWebHashHistory 路由模式路径带#号 //vue3设置不带#号 const router = createRouter({ history: createWebHis 阅读全文

posted @ 2022-07-19 13:57 祖国小黄花 阅读(9072) 评论(0) 推荐(0) 编辑

vue2路由*已弃用 Catch all routes ("*") must now be defined using a param with a custom regexp

摘要: { //除已经定义好了的路由,其它路由都跳到/404路由 //vue2使用 * 所有路由,vue3使用 /:pathMatch(.*) path:"/:pathMatch(.*)", redirect:'/404' } 阅读全文

posted @ 2022-07-19 13:36 祖国小黄花 阅读(671) 评论(0) 推荐(1) 编辑

vue3报错:[@vue/compiler-sfc] the >>> and /deep/ combinators have been deprecated. Use :deep() instead.

摘要: /* /deep/ 当优先级!important没有效果使用/deep/ */ /* /deep/已弃用 使用:deep() */ :deep(.el-checkbox__label) { padding-left: 0px !important; } 阅读全文

posted @ 2022-07-19 12:30 祖国小黄花 阅读(4346) 评论(0) 推荐(0) 编辑

2022年7月15日

关于Authorization:"Bearer "+token访问401无权限

摘要: 给Authorization:"Bearer "中的"Bearer "的里面有加空格 给链接尾部加上token,getToken()是自己写的方法登录后就可以拿到返回的token actionHeader: { Authorization:"Bearer " + getToken() }, 阅读全文

posted @ 2022-07-15 15:24 祖国小黄花 阅读(1712) 评论(0) 推荐(0) 编辑

导航