From 419a63a377bb3e49476a77e6a6ebde476def262c Mon Sep 17 00:00:00 2001 From: yxh Date: Mon, 14 Aug 2023 11:53:02 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E6=B6=88=E6=81=AF=E9=98=9F=E5=88=97?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 3 + src/i18n/index.ts | 6 +- src/router/route.ts | 15 +++++ src/views/mqueue/index.vue | 127 +++++++++++++++++++++++++++++++++++++ 4 files changed, 148 insertions(+), 3 deletions(-) create mode 100644 src/views/mqueue/index.vue diff --git a/.env.development b/.env.development index 98e13a0..92fe656 100644 --- a/.env.development +++ b/.env.development @@ -3,3 +3,6 @@ ENV = 'development' # 本地环境接口地址 VITE_API_URL = 'http://localhost:8808/' + +# 本地环境websocket接口地址 +VITE_WEBSOCKET_URL = 'ws://localhost:8808/' diff --git a/src/i18n/index.ts b/src/i18n/index.ts index 561a823..35ec3e9 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -2,9 +2,9 @@ import { createI18n } from 'vue-i18n'; import pinia from '/@/stores/index'; import { storeToRefs } from 'pinia'; import { useThemeConfig } from '/@/stores/themeConfig'; -import zhcnLocale from 'element-plus/lib/locale/lang/zh-cn'; -import enLocale from 'element-plus/lib/locale/lang/en'; -import zhtwLocale from 'element-plus/lib/locale/lang/zh-tw'; +import zhcnLocale from 'element-plus/es/locale/lang/zh-cn'; +import enLocale from 'element-plus/es/locale/lang/en'; +import zhtwLocale from 'element-plus/es/locale/lang/zh-tw'; import nextZhcn from '/@/i18n/lang/zh-cn'; import nextEn from '/@/i18n/lang/en'; diff --git a/src/router/route.ts b/src/router/route.ts index 379c6e5..d281d23 100644 --- a/src/router/route.ts +++ b/src/router/route.ts @@ -1099,6 +1099,21 @@ export const demoRoutes:Array = [ icon: 'iconfont icon-neiqianshujuchucun', }, }, + { + path: '/demo/mqueue', + name: 'mqueueDemoView', + component: () => import('/@/views/mqueue/index.vue'), + meta: { + title: '消息队列测试', + isHide: false, + isLink: '', + isKeepAlive: false, + isAffix: false, + isIframe: false, + roles: ['admin'], + icon: 'iconfont icon-shouye_dongtaihui', + }, + }, ] } ] diff --git a/src/views/mqueue/index.vue b/src/views/mqueue/index.vue new file mode 100644 index 0000000..1a0dba1 --- /dev/null +++ b/src/views/mqueue/index.vue @@ -0,0 +1,127 @@ + + + + +