Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
87783154
Commit
87783154
authored
Dec 10, 2021
by
guxukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: windows打不开压缩文件
parent
7dbe7329
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
webpack.config.js
apps/remix-ide/webpack.config.js
+3
-1
workspace.ts
libs/remix-ui/workspace/src/lib/actions/workspace.ts
+1
-1
No files found.
apps/remix-ide/webpack.config.js
View file @
87783154
...
@@ -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
}
}
...
...
libs/remix-ui/workspace/src/lib/actions/workspace.ts
View file @
87783154
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment