diff --git a/apps/web-antd/src/router/routes/modules/vben.ts b/apps/web-antd/src/router/routes/modules/vben.ts index 88d0f7db..3a0daabe 100644 --- a/apps/web-antd/src/router/routes/modules/vben.ts +++ b/apps/web-antd/src/router/routes/modules/vben.ts @@ -60,7 +60,7 @@ const routes: RouteRecordRaw[] = [ meta: { badgeType: 'dot', link: VBEN_NAIVE_PREVIEW_URL, - title: 'Naive UI 版本', + title: $t('page.vben.naive-ui'), }, }, { @@ -70,7 +70,7 @@ const routes: RouteRecordRaw[] = [ meta: { badgeType: 'dot', link: VBEN_ELE_PREVIEW_URL, - title: 'Element Plus 版本', + title: $t('page.vben.element-plus'), }, }, ], diff --git a/apps/web-ele/src/router/routes/modules/vben.ts b/apps/web-ele/src/router/routes/modules/vben.ts index 602ef816..a5ced040 100644 --- a/apps/web-ele/src/router/routes/modules/vben.ts +++ b/apps/web-ele/src/router/routes/modules/vben.ts @@ -60,7 +60,7 @@ const routes: RouteRecordRaw[] = [ meta: { badgeType: 'dot', link: VBEN_NAIVE_PREVIEW_URL, - title: 'Naive UI 版本', + title: $t('page.vben.naive-ui'), }, }, { @@ -70,7 +70,7 @@ const routes: RouteRecordRaw[] = [ meta: { badgeType: 'dot', link: VBEN_PREVIEW_URL, - title: 'Ant Design 版本', + title: $t('page.vben.antdv'), }, }, ], diff --git a/apps/web-ele/src/views/demos/element/index.vue b/apps/web-ele/src/views/demos/element/index.vue index 9db6940c..d56e9d9b 100644 --- a/apps/web-ele/src/views/demos/element/index.vue +++ b/apps/web-ele/src/views/demos/element/index.vue @@ -9,6 +9,10 @@ import { type NotificationType = 'error' | 'info' | 'success' | 'warning'; +function info() { + ElMessage.info('How many roads must a man walk down'); +} + function error() { ElMessage.error({ duration: 2500, @@ -70,6 +74,7 @@ function notify(type: NotificationType) { 信息 Message