From 2087b122b0f17f2616ed144d447f914e34c62680 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期一, 14 十月 2024 13:40:06 +0800 Subject: [PATCH] # --- zy-acs-flow/src/i18n/en.js | 1 + zy-acs-flow/src/i18n/zh.js | 1 + zy-acs-flow/src/map/Notification.jsx | 4 ++-- zy-acs-flow/src/map/MapPage.jsx | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/zy-acs-flow/src/i18n/en.js b/zy-acs-flow/src/i18n/en.js index 93707e2..d587882 100644 --- a/zy-acs-flow/src/i18n/en.js +++ b/zy-acs-flow/src/i18n/en.js @@ -622,6 +622,7 @@ } }, map: { + welcome: 'Welcome To Rcs', devices: { title: 'Icons', shelf: 'SHELF', diff --git a/zy-acs-flow/src/i18n/zh.js b/zy-acs-flow/src/i18n/zh.js index 91dccf4..6513116 100644 --- a/zy-acs-flow/src/i18n/zh.js +++ b/zy-acs-flow/src/i18n/zh.js @@ -620,6 +620,7 @@ } }, map: { + welcome: '娆㈣繋浣跨敤RCS', devices: { title: '鍥炬爣搴�', shelf: '璐ф灦', diff --git a/zy-acs-flow/src/map/MapPage.jsx b/zy-acs-flow/src/map/MapPage.jsx index e5ae0b1..11179da 100644 --- a/zy-acs-flow/src/map/MapPage.jsx +++ b/zy-acs-flow/src/map/MapPage.jsx @@ -86,7 +86,7 @@ setTimeout(() => { player.adaptScreen(); - notify.info('Welcome to Rcs'); + notify.info(translate('page.map.welcome')); }, 200) // websocket.connect(); diff --git a/zy-acs-flow/src/map/Notification.jsx b/zy-acs-flow/src/map/Notification.jsx index de65c06..0053ec1 100644 --- a/zy-acs-flow/src/map/Notification.jsx +++ b/zy-acs-flow/src/map/Notification.jsx @@ -37,7 +37,7 @@ <Portal> <Snackbar open={notification.open} - autoHideDuration={4000} + autoHideDuration={3000} onClose={handleClose} TransitionComponent={SlideTransition} anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }} @@ -49,7 +49,7 @@ onClose={handleClose} severity={notification.severity} sx={{ width: '300px', zIndex: 2000 }} - variant="filled" // Optional: Use filled variant for better visibility + variant="outlined" // Optional: Use filled variant for better visibility > {notification.message} </Alert> -- Gitblit v1.9.1