2020年2月11日
1
OSharp 的 Angular 版前端是基于 NG-ALAIN 前端框架开发的。
出现 Angular 找不到路由,发现是html运行出错
2020年2月12日
1
运行时出现
数据库里没有EncryptInfo这张表,没有进行数据迁移
2
html出现APIs for Icon without 'nz' prefix are deprecated and will be removed in 9.0.0!
原因是 9.0.0更新出错
修改样式 [nzType]="'plus-circle'" 解决报错
3
发布后怎么设置都无不访问网站,在Startup.cs中去掉//app.UseHsts().UseHttpsRedirection();即可
2020年2月17日
1
the icon wechat-o does not exist or is not registered
在前端里显示不出有的图标,需要在style-icons-auto.ts自己手动增加
2020年2月18日
1
前端
this.http.get("api/ydl/wx/test2").subscribe()
后端
public string test(){}
这样的话就进不去subscribe 两种改法
1 修改前端类型为text
this.http.get("api/ydl/wx/test2",null,{responseType:‘text’})
2 修改后端返回json
public AjaxResult test(){}
2020年2月19日
1
发现某个操作 http.post返回400错误(一些数据正常,一些数据出错),用console.log打印,发现出错的json参数某此字段为null,然后去后端查看API,刚好这些为null的字段使用了[requied]属性,修改前端解决