summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/shared
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2021-01-27 15:49:45 +0800
committercyuamber <xuranyjy@chinamobile.com>2021-01-27 15:49:50 +0800
commit2156dd58179b238ac36d723d469e79c7fdf0cddf (patch)
treeb24614505729b6fcf203c285de033a07f31c11f9 /usecaseui-portal/src/app/shared
parentdb0ce30f2215a7983d43a86855d0a36bf0b12bc0 (diff)
feat: change the data struc and loading timer of csmf page
Change-Id: Ia7aec7439dd4909c76f4f2733482814335e83b22 Issue-ID: USECASEUI-531 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/shared')
-rw-r--r--usecaseui-portal/src/app/shared/utils/utils.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/usecaseui-portal/src/app/shared/utils/utils.ts b/usecaseui-portal/src/app/shared/utils/utils.ts
index 63e19075..0633778c 100644
--- a/usecaseui-portal/src/app/shared/utils/utils.ts
+++ b/usecaseui-portal/src/app/shared/utils/utils.ts
@@ -104,13 +104,13 @@ export class Util {
if (!this.deepCheck(target[i])) {
return false;
}
- }
+ }
} else if (type === '[object Object]') {
for (const prop in target) {
if (target.hasOwnProperty(prop)) {
- if (!this.deepCheck(target[prop])) {
- return false;
- }
+ if (!this.deepCheck(target[prop])) {
+ return false;
+ }
}
}
} else {
@@ -124,10 +124,10 @@ export class Util {
}
pick(obj: object, arr: Array<string>): Object {
return arr.reduce((iter, val) => {
- if(val in obj) {
- iter[val] = obj[val];
- }
- return iter;
+ if(val in obj) {
+ iter[val] = obj[val];
+ }
+ return iter;
}, {});
}
} \ No newline at end of file