i created pages and add a Custome code to it when i add new page using abp suite it make changes to old pages how to prevent this behaver
5 Answer(s)
-
0
Can you provide more some steps to reprodce this issue.
-
0
i have this code export interface IFormFile { contentType?: string; contentDisposition?: string; headers: Record<string, any>; length: number; name?: string; fileName?: string; }
if i adding any new entity it changed to export interface IFormFile { contentType?: string; contentDisposition?: string; headers: Record<string, StringValues>; length: number; name?: string; fileName?: string; }
also i have this method uploadExcelTemplateByFile = (file: any, config?: Partial<Rest.Config>) => this.restService.request<any, void>( { method: 'POST', url: '/api/app/departments/upload-template', body: file, }, { apiName: this.apiName, ...config }, ); it changed to uploadExcelTemplateByFile = (file: any, config?: Partial<Rest.Config>) => this.restService.request<any, void>( { method: 'POST', url: '/api/app/departments/upload-template', body: file, }, { apiName: this.apiName, ...config }, );
file: any changed to IFormFile
uploadExcelTemplateByFile = (file: IFormFile, config?: Partial<Rest.Config>) => this.restService.request<any, void>( { method: 'POST', url: '/api/app/departments/upload-template', body: file, }, { apiName: this.apiName, ...config }, );
-
0
Hello
Thank you for providing this code. However, we need the steps to reproduce this issue. Please provide the steps.
Thank you.
-
0
the steps is add new entity using abp suite then add new method in angular project for uploading this entity data from excel using this method
uploadExcelTemplateByFile = (file: any, config?: Partial<Rest.Config>) => this.restService.request<any, void>( { method: 'POST', url: '/api/app/departments/upload-template', body: file, }, { apiName: this.apiName, ...config }, ); in the method i use file as any then add othe new entity using abp suite and it will change the type of the file from any to IFormFile
-
0
Adding extra functions directly to the proxy file is not recommended, as they will be overwritten by the next code generation. Instead, you may create a separate service to handle these additional operations.
If you suspect this issue is related to specific suite configurations or selections, please provide more details so I may assist further.