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
e4f484d9
Commit
e4f484d9
authored
Dec 10, 2021
by
guxukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: windows打不开压缩文件
parent
6a9b583b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
webpack.config.js
apps/remix-ide/webpack.config.js
+2
-1
workspace.ts
libs/remix-ui/workspace/src/lib/actions/workspace.ts
+4
-1
No files found.
apps/remix-ide/webpack.config.js
View file @
e4f484d9
...
...
@@ -40,7 +40,8 @@ module.exports = config => {
}
else
{
webpackConfig
.
devServer
=
{
...
webpackConfig
.
devServer
,
hot
:
true
hot
:
true
,
host
:
'0.0.0.0'
}
return
webpackConfig
}
...
...
libs/remix-ui/workspace/src/lib/actions/workspace.ts
View file @
e4f484d9
...
...
@@ -263,8 +263,11 @@ export const uploadFile = async (target, targetFolder: string, cb?: (err: Error,
// pick that up via the 'fileAdded' event from the files module.
async
function
iterator
(
files
)
{
await
Promise
.
all
(
Array
.
from
(
files
).
map
(
async
(
file
:
File
)
=>
{
console
.
log
(
'fileType:::'
+
file
.
type
)
// 'application/x-zip-compressed' win
// 'application/zip' mac
if
(
file
.
type
===
'application/zip'
file
.
type
===
'application/zip'
||
file
.
type
===
'application/x-zip-compressed'
)
{
if
(
file
.
size
/
1024
>
1024
)
{
return
dispatch
(
displayNotification
(
'File Upload Failed'
,
'压缩文件大于1M'
,
'Close'
,
null
,
async
()
=>
{
...
...
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