From 75fb721ba216a37250651c97e72ae90f82f0db8d Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期一, 15 十二月 2025 14:08:06 +0800
Subject: [PATCH] 修改文件上传既能上传dwg文件,又能上传图片文件
---
north-glass-erp/northglass-erp/src/main.js | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/north-glass-erp/northglass-erp/src/main.js b/north-glass-erp/northglass-erp/src/main.js
index 354857e..e96081d 100644
--- a/north-glass-erp/northglass-erp/src/main.js
+++ b/north-glass-erp/northglass-erp/src/main.js
@@ -11,6 +11,8 @@
// ...绾〃鏍�
import VxeTable from 'vxe-table'
import 'vxe-table/lib/style.css'
+import VXETablePluginExportXLSX from 'vxe-table-plugin-export-xlsx'
+import ExcelJS from 'exceljs'
// ...鍙�� UI
import VxeUI from 'vxe-pc-ui'
@@ -29,17 +31,24 @@
const app = createApp(App)
const pinia = createPinia()
+VxeTable.use(VXETablePluginExportXLSX, {
+ ExcelJS
+})
+
pinia.use(piniaPluginPersistedstate )
app.use(VxeUI)
app.use(VxeTable)
app.use(pinia)
app.use(router)
+
app.use(ElementPlus,{
- locale: zhCn,
+ locale: (localStorage.getItem('lang') === 'zh-CN' ? zhCn : localStorage.getItem('lang') === null ? zhCn : null),
})
+
+
app.use(i18n)
app.use(print)
app.use(hiPrintPlugin)
app.use(gridLayout)
-app.mount('#app')
+app.mount('#app')
\ No newline at end of file
--
Gitblit v1.8.0