From bbbc496df8dca93ca2f6cfeb1eebc3929a1cad8d Mon Sep 17 00:00:00 2001 From: mashitao2 Date: Fri, 17 Feb 2023 16:35:25 +0800 Subject: [PATCH 1/2] =?UTF-8?q?IssueNo:=20#I6FVHI:=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=20Description:=20Upadate=20style=20Sig:=20SI?= =?UTF-8?q?G=5Fapplications=5Fapp=5Fsamples=20Feature=20or=20Bugfix:=20Fea?= =?UTF-8?q?ture=20Binary=20Source:=20No=20Signed-off-by:=20mashitao2=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MusicAlbum/entry/src/main/ets/pages/Index.ets | 2 +- network/WebSocket/entry/src/main/ets/pages/Chats.ets | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MultiDeviceAppDev/MusicAlbum/entry/src/main/ets/pages/Index.ets b/MultiDeviceAppDev/MusicAlbum/entry/src/main/ets/pages/Index.ets index dcab3c8c..9bca2835 100644 --- a/MultiDeviceAppDev/MusicAlbum/entry/src/main/ets/pages/Index.ets +++ b/MultiDeviceAppDev/MusicAlbum/entry/src/main/ets/pages/Index.ets @@ -34,7 +34,7 @@ struct Index { } build() { - Stack() { + Stack({ alignContent: Alignment.Top }) { Stack({ alignContent: Alignment.Top }) { Header() Content() diff --git a/network/WebSocket/entry/src/main/ets/pages/Chats.ets b/network/WebSocket/entry/src/main/ets/pages/Chats.ets index 7b285607..fb5c751a 100644 --- a/network/WebSocket/entry/src/main/ets/pages/Chats.ets +++ b/network/WebSocket/entry/src/main/ets/pages/Chats.ets @@ -75,7 +75,7 @@ struct Chats { }) socket.on('open', (err, value) => { // 当收到on('open')事件时,可以通过send()方法与服务器进行通信 - promptAction.showToast({ button: '连接成功,可以聊天了!', duration: 1500 }) + promptAction.showToast({ message: '连接成功,可以聊天了!', duration: 1500 }) }) socket.on('message', (err, value) => { Logger.info(TAG, `on message, value = ${value}`) @@ -89,7 +89,7 @@ struct Chats { Logger.info(TAG, `on open, status:${value['status']}, message:${value['message']}`) }) socket.off('message') - promptAction.showToast({ button: '连接已断开!', duration: 1500 }) + promptAction.showToast({ message: '连接已断开!', duration: 1500 }) socket.close() } -- Gitee From c6614fd7c2691a443b31622e48d0fddf6e6dc643 Mon Sep 17 00:00:00 2001 From: mashitao2 Date: Fri, 17 Feb 2023 17:34:24 +0800 Subject: [PATCH 2/2] =?UTF-8?q?IssueNo:=20#I6FWS2:=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=B8=83=E5=B1=80=20Description:=20Modify=20layout=20Sig:=20SI?= =?UTF-8?q?G=5Fapplications=5Fapp=5Fsamples=20Feature=20or=20Bugfix:=20Fea?= =?UTF-8?q?ture=20Binary=20Source:=20No=20Signed-off-by:=20mashitao2=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MultiDeviceAppDev/MusicAlbum/entry/src/main/ets/pages/Index.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MultiDeviceAppDev/MusicAlbum/entry/src/main/ets/pages/Index.ets b/MultiDeviceAppDev/MusicAlbum/entry/src/main/ets/pages/Index.ets index 9bca2835..b0077638 100644 --- a/MultiDeviceAppDev/MusicAlbum/entry/src/main/ets/pages/Index.ets +++ b/MultiDeviceAppDev/MusicAlbum/entry/src/main/ets/pages/Index.ets @@ -34,7 +34,7 @@ struct Index { } build() { - Stack({ alignContent: Alignment.Top }) { + Stack({ alignContent: Alignment.Bottom }) { Stack({ alignContent: Alignment.Top }) { Header() Content() -- Gitee