Commit 87783154 authored by guxukai's avatar guxukai

fix: windows打不开压缩文件

parent 7dbe7329
...@@ -41,7 +41,9 @@ module.exports = config => { ...@@ -41,7 +41,9 @@ module.exports = config => {
webpackConfig.devServer = { webpackConfig.devServer = {
...webpackConfig.devServer, ...webpackConfig.devServer,
hot: true, hot: true,
host: '0.0.0.0' host: '0.0.0.0',
// for ngrok
disableHostCheck: true
} }
return webpackConfig return webpackConfig
} }
......
...@@ -263,7 +263,7 @@ export const uploadFile = async (target, targetFolder: string, cb?: (err: Error, ...@@ -263,7 +263,7 @@ export const uploadFile = async (target, targetFolder: string, cb?: (err: Error,
// pick that up via the 'fileAdded' event from the files module. // pick that up via the 'fileAdded' event from the files module.
async function iterator (files) { async function iterator (files) {
await Promise.all(Array.from(files).map(async (file: File) => { await Promise.all(Array.from(files).map(async (file: File) => {
console.log('fileType:::' + file.type) console.error('fileType:::' + file.type)
// 'application/x-zip-compressed' win // 'application/x-zip-compressed' win
// 'application/zip' mac // 'application/zip' mac
if ( if (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment