09 2022 档案
静态方法中使用@Autowired获取的非静态对象
摘要:private static OpProjectService opProjectService = (OpProjectService) ApplicationContextHolder.getContext().getBean(OpProjectService.class);
阅读全文
vue中过滤器不能接收data中数据解决办法
摘要:1.在data中定义一个属性that,把this存储到that中 data() { return { //过滤器拿到this对象 that: this, } } 2.在调用filters中的方法sum的时候将that传进去即可 <el-table-column label="原属产品" align=
阅读全文