From ea57b412689d6aa808707bc074d662cb0706a13f Mon Sep 17 00:00:00 2001 From: wuyouming666 <2265557248@qq.com> Date: 星期三, 20 十二月 2023 10:08:25 +0800 Subject: [PATCH] 更新前端配置文件 --- CanadaMes-ui/src/main.js | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/CanadaMes-ui/src/main.js b/CanadaMes-ui/src/main.js index 197ff46..dfacd3c 100644 --- a/CanadaMes-ui/src/main.js +++ b/CanadaMes-ui/src/main.js @@ -10,10 +10,14 @@ import VueI18n from 'vue-i18n' import zhCN from './lang/locales/zh-CN.json' // 涓枃璇█鍖� import enUS from './lang/locales/en-US.json' // 鑻辨枃璇█鍖� +import websocketPlugin from './api/websocketPlugin'; // 寮曞叆鎻掍欢鏂囦欢 // import store from './store' // import store from './store' Vue.use(VueI18n) +Vue.use(websocketPlugin, { + ip: 'localhost', // 鏇挎崲鎴愪綘鐨� WebSocket 鏈嶅姟鍣� IP 鍦板潃 +}); const i18n = new VueI18n({ locale: 'en-US', -- Gitblit v1.8.0