From ffaa2558c9e06e4ff4729cca1c7d5b89dd8e6d5a Mon Sep 17 00:00:00 2001 From: myml Date: Mon, 20 Aug 2018 13:12:54 +0800 Subject: [PATCH] fix: app service Change-Id: I3b61593adbf526e46be3a44aaa38589b025751ff --- debian/rules | 3 --- src/web/src/app/dstore/services/app.service.ts | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/debian/rules b/debian/rules index 9603e835..9559177c 100755 --- a/debian/rules +++ b/debian/rules @@ -17,9 +17,6 @@ else rm -rf src/web/node_modules git clone -b deepin-appstore https://cr.deepin.io/vendor-deps src/web/node_modules - rm -rf src/web/src/app/dstore - git clone https://cr.deepin.io/dstore-web-components src/web/src/app/dstore - rm -rf src/web/src/app/dstore-client.module git clone -b client https://cr.deepin.io/dstore-web-components src/web/src/app/dstore-client.module endif diff --git a/src/web/src/app/dstore/services/app.service.ts b/src/web/src/app/dstore/services/app.service.ts index ff2d18f5..c1261b2c 100644 --- a/src/web/src/app/dstore/services/app.service.ts +++ b/src/web/src/app/dstore/services/app.service.ts @@ -56,7 +56,7 @@ export class AppService { const categoryList = await this.categoryServer.getList().toPromise(); Object.values(appMap).forEach(app => { app.localCategory = categoryList[app.category].LocalName; - if (get(app, ['locale', Locale.getUnixLocale(), 'description.name'])) { + if (get(app, ['locale', Locale.getUnixLocale(), 'description', 'name'])) { app.localInfo = app.locale[Locale.getUnixLocale()]; } else if (get(app, 'locale.en_US.description.name')) { app.localInfo = app.locale['en_US'];