@@ -131,7 +131,11 @@ export class CloudQuery {
});
const json = await response?.json();
- return json || {};
+ if (json) {
+ let existsObject = this.dataToObj(json)
+ return existsObject;
+ }
+ return null
}
async find():Promise<Array<CloudObject>> {
@@ -27,6 +27,5 @@ bootstrapApplication(AppComponent, {
provideHttpClient(),
// 添加Diagnostic
Diagnostic,
- { provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],