摘要: 请求代码: searchDicts(req?: any): Observable<EntityArrayResponseType> { const aa = this.http .post<IDict[]>(this.searchUrl, req, {observe: 'response'}) .p 阅读全文
posted @ 2021-01-30 15:16 颜文字 阅读(537) 评论(0) 推荐(0) 编辑
摘要: 解决方法: // 参数 base64:base64编码格式的数据 protected getSafeUrl(base64: any) { // 将代码做安全处理,base64Url 为全局变量 this.base64Url = this.sanitizer.bypassSecurityTrustUr 阅读全文
posted @ 2021-01-27 17:13 颜文字 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 1、无法传值给全局变量 protected getImage(image: any) { const fileReader = new FileReader(); fileReader.readAsDataURL(image.files[0]); // tslint:disable-next-lin 阅读全文
posted @ 2021-01-27 16:52 颜文字 阅读(1020) 评论(0) 推荐(0) 编辑