From 3f6e622083cd63400fd3fc8f5dee4f4c5f2a4ab9 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期一, 08 七月 2024 15:55:46 +0800
Subject: [PATCH] #
---
zy-asrs-admin/src/main.js | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/zy-asrs-admin/src/main.js b/zy-asrs-admin/src/main.js
index 02a017d..35e814f 100644
--- a/zy-asrs-admin/src/main.js
+++ b/zy-asrs-admin/src/main.js
@@ -7,6 +7,7 @@
import 'ant-design-vue/dist/reset.css';
import { initRouter } from '@/router/index.js'
import { globalState } from './config.js'
+import print from 'vue3-print-nb'
const app = createApp(App)
@@ -17,7 +18,9 @@
let locale = localStorage.getItem('locale')
globalState.token = token;
globalState.user = user;
- globalState.locale = locale;
+ if(locale != null) {
+ globalState.locale = locale;
+ }
}
}
@@ -29,6 +32,7 @@
app.use(createPinia())
app.use(router)
app.use(Antd)
+ app.use(print)
router.isReady().then((e) => {
app.mount('#app')
})
--
Gitblit v1.9.1