zhouwx
2024-06-07 a309b65e80f3f21b5ab7c182acb9764f47c677f1
vue.config.js
@@ -10,4 +10,22 @@
            ],
        },
    },
    configureWebpack: {
        module: {
            rules: [
                {
                    test: /\.(xlsx|xls)$/,
                    use: [
                        {
                            loader: 'file-loader',
                            options: {
                                name: '[name].[ext]', // 保留原始文件名和扩展名
                                outputPath: 'assets', // 输出文件的文件夹路径,可以根据需要更改
                            },
                        },
                    ],
                },
            ],
        },
    }
};