From 2603776911f8acfe970f8d79c2f57f2e5c22791d Mon Sep 17 00:00:00 2001 From: zhouwenxuan <1175765986@qq.com> Date: 星期四, 21 十二月 2023 14:36:57 +0800 Subject: [PATCH] 用户导入 --- vue.config.js | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/vue.config.js b/vue.config.js index dc354e9..1048b70 100644 --- a/vue.config.js +++ b/vue.config.js @@ -10,4 +10,22 @@ ], }, }, + configureWebpack: { + module: { + rules: [ + { + test: /\.(xlsx|xls)$/, + use: [ + { + loader: 'file-loader', + options: { + name: '[name].[ext]', // 保留原始文件名和扩展名 + outputPath: 'assets', // 输出文件的文件夹路径,可以根据需要更改 + }, + }, + ], + }, + ], + }, + } }; -- Gitblit v1.9.2