前端代码适配springboot3微调

This commit is contained in:
MaxKey
2023-08-19 10:42:42 +08:00
parent 7e71d8dd93
commit 01a70fcb6c
4 changed files with 15 additions and 7 deletions

View File

@@ -84,6 +84,9 @@ export class BaseService<T> {
}
get(id: String): Observable<Message<T>> {
if (id === null || id === '') {
return this.http.get<Message<T>>(`${this.server.urls.base + this.server.urls.get}`);
}
return this.http.get<Message<T>>(`${this.server.urls.base + this.server.urls.get}/${id}`);
}