mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-19 14:33:33 -04:00
Signed-off-by: lixingchi1 <lixingchi1@huawei.com>
This commit is contained in:
@@ -58,8 +58,7 @@ export const defineFn = function(page: Page, packageName: string, name?: string,
|
||||
const pageRequire = (name: string) : any => {
|
||||
if (isModule(name)) {
|
||||
const appFunction = (): Page => {
|
||||
const appPage: Page = appMap[packageName].getAppInstance();
|
||||
return appPage || page;
|
||||
return page || appMap[packageName].getAppInstance();
|
||||
};
|
||||
return requireModule(appFunction, removePrefix(name));
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ export function appCreate(page: Page, options: Options, data: object, services:
|
||||
};
|
||||
|
||||
// require in top app(instance)
|
||||
const appRequireModule = name => requireModule(appPage, removePrefix(name));
|
||||
const appRequireModule = name => requireModule(page || appPage, removePrefix(name));
|
||||
const parseOptions: ParseOptions = {
|
||||
$app_define$: appDefine,
|
||||
$app_bootstrap$: appBootstrap,
|
||||
|
||||
@@ -649,10 +649,6 @@ class Element extends Node {
|
||||
if (this.attr[key] === value && silent !== false) {
|
||||
return;
|
||||
}
|
||||
// Because the data has been addressed in SetData
|
||||
if (key === 'data') {
|
||||
return;
|
||||
}
|
||||
this.attr[key] = value;
|
||||
const taskCenter = this.getTaskCenter(this.docId);
|
||||
if (!silent && taskCenter) {
|
||||
|
||||
Reference in New Issue
Block a user