提交 39613145 编写于 作者: X xinking129

fix code

Signed-off-by: Nxinking129 <xinxin13@huawei.com>
上级 07c6120b
...@@ -354,8 +354,9 @@ export default class UiExtAbility extends ActionExtensionAbility { ...@@ -354,8 +354,9 @@ export default class UiExtAbility extends ActionExtensionAbility {
} }
if (want.action === 'Acts_ActionExtensionAbility_3200') { if (want.action === 'Acts_ActionExtensionAbility_3200') {
let moduleContext;
try { try {
let moduleContext = this.context.createModuleContext('entry_assist'); moduleContext = this.context.createModuleContext('entry_assist');
} catch { } catch {
console.log('createModuleContext err'); console.log('createModuleContext err');
} }
...@@ -370,8 +371,9 @@ export default class UiExtAbility extends ActionExtensionAbility { ...@@ -370,8 +371,9 @@ export default class UiExtAbility extends ActionExtensionAbility {
} }
if (want.action === 'Acts_ActionExtensionAbility_3300') { if (want.action === 'Acts_ActionExtensionAbility_3300') {
let moduleContext;
try { try {
let moduleContext = this.context.createModuleContext('abc'); moduleContext = this.context.createModuleContext('abc');
} catch { } catch {
console.log('createModuleContext err'); console.log('createModuleContext err');
} }
...@@ -386,8 +388,9 @@ export default class UiExtAbility extends ActionExtensionAbility { ...@@ -386,8 +388,9 @@ export default class UiExtAbility extends ActionExtensionAbility {
} }
if (want.action === 'Acts_ActionExtensionAbility_3400') { if (want.action === 'Acts_ActionExtensionAbility_3400') {
let moduleContext;
try { try {
let moduleContext = this.context.createModuleContext(undefined); moduleContext = this.context.createModuleContext(undefined);
} catch { } catch {
console.log('createModuleContext err'); console.log('createModuleContext err');
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册