From ef52993756faadd82a96d56d26c060187e4731ca Mon Sep 17 00:00:00 2001 From: litianfu <473469823@qq.com> Date: Fri, 13 Jun 2025 14:59:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/base/element/float.json | 8 -------- .../src/main/ets/entryability/EntryAbility.ets | 3 ++- .../main/ets/entrybackupability/EntryBackupAbility.ets | 2 +- .../src/main/resources/base/element/float.json | 8 -------- 4 files changed, 3 insertions(+), 18 deletions(-) delete mode 100644 smartwatchmaplibrary/src/main/resources/base/element/float.json delete mode 100644 smartwatchmapsample/src/main/resources/base/element/float.json diff --git a/smartwatchmaplibrary/src/main/resources/base/element/float.json b/smartwatchmaplibrary/src/main/resources/base/element/float.json deleted file mode 100644 index 33ea223..0000000 --- a/smartwatchmaplibrary/src/main/resources/base/element/float.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "float": [ - { - "name": "page_text_font_size", - "value": "50fp" - } - ] -} diff --git a/smartwatchmapsample/src/main/ets/entryability/EntryAbility.ets b/smartwatchmapsample/src/main/ets/entryability/EntryAbility.ets index 0e9bb89..964b655 100644 --- a/smartwatchmapsample/src/main/ets/entryability/EntryAbility.ets +++ b/smartwatchmapsample/src/main/ets/entryability/EntryAbility.ets @@ -32,7 +32,8 @@ export default class EntryAbility extends UIAbility { windowStage.loadContent('pages/Index', (err) => { if (err.code) { - hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? ''); + hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', + JSON.stringify(err.message) ?? ''); return; } hilog.info(0x0000, 'testTag', 'Succeeded in loading the content.'); diff --git a/smartwatchmapsample/src/main/ets/entrybackupability/EntryBackupAbility.ets b/smartwatchmapsample/src/main/ets/entrybackupability/EntryBackupAbility.ets index b1e2129..406ff12 100644 --- a/smartwatchmapsample/src/main/ets/entrybackupability/EntryBackupAbility.ets +++ b/smartwatchmapsample/src/main/ets/entrybackupability/EntryBackupAbility.ets @@ -22,6 +22,6 @@ export default class EntryBackupAbility extends BackupExtensionAbility { } async onRestore(bundleVersion: BundleVersion) { - hilog.info(0x0000, 'testTag', 'onRestore ok %{public}s', JSON.stringify(bundleVersion)); + hilog.info(0x0000, 'testTag', 'onRestore ok'); } } \ No newline at end of file diff --git a/smartwatchmapsample/src/main/resources/base/element/float.json b/smartwatchmapsample/src/main/resources/base/element/float.json deleted file mode 100644 index 33ea223..0000000 --- a/smartwatchmapsample/src/main/resources/base/element/float.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "float": [ - { - "name": "page_text_font_size", - "value": "50fp" - } - ] -} -- Gitee