mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: remove babel
This commit is contained in:
1 parent
ff943b620e
commit
c7c70a6abb
23 files changed
+466
-606
No files matched your search
@@ -3,12 +3,12 @@ import Notification from 'vj/components/notification/index';
|
||||
import i18n from 'vj/utils/i18n';
|
||||
|
||||
export default new AutoloadPage('notificationPage', (pagename) => {
|
||||
const message = i18n(`Hint::Page::${pagename}`);
|
||||
const item = localStorage.getItem(`hint.${message}`);
|
||||
if (message !== `Hint::Page::${pagename}` && !item) {
|
||||
Notification.info(message, message.length * 500);
|
||||
localStorage.setItem(`hint.${message}`, true);
|
||||
}
|
||||
const text = new URL(window.location.href).searchParams.get('notification');
|
||||
if (text) Notification.success(text);
|
||||
const message = i18n(`Hint::Page::${pagename}`);
|
||||
const item = localStorage.getItem(`hint.${message}`);
|
||||
if (message !== `Hint::Page::${pagename}` && !item) {
|
||||
Notification.info(message, message.length * 500);
|
||||
localStorage.setItem(`hint.${message}`, true);
|
||||
}
|
||||
const text = new URL(window.location.href).searchParams.get('notification');
|
||||
if (text) Notification.success(text);
|
||||
});
|
||||
Reference in new issue
Block a user