From 5bb5c0c4cc1227b0a3f7f4ae926a3e8324022bf9 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期五, 19 七月 2024 14:37:01 +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