Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ethan
/
appframe
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 51f507f4
authored
2025-11-27 08:46:54 +0800
by
tanghuan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
同步解压文件
1 parent
0c242392
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
lib/services/local_server_service.dart
lib/services/local_server_service.dart
View file @
51f507f
...
@@ -13,7 +13,7 @@ class LocalServerService {
...
@@ -13,7 +13,7 @@ class LocalServerService {
// 启动本地HTTP服务器
// 启动本地HTTP服务器
Future
<
HttpServer
>
startLocalServer
()
async
{
Future
<
HttpServer
>
startLocalServer
()
async
{
// 测试情况下, 每次启动服务,先解压dist文件
// 测试情况下, 每次启动服务,先解压dist文件
_extractDist
();
await
_extractDist
();
HttpServer
server
=
await
HttpServer
.
bind
(
InternetAddress
.
loopbackIPv4
,
Constant
.
localServerPort
);
HttpServer
server
=
await
HttpServer
.
bind
(
InternetAddress
.
loopbackIPv4
,
Constant
.
localServerPort
);
print
(
'本地服务器启动在端口:
${server.port}
'
);
print
(
'本地服务器启动在端口:
${server.port}
'
);
...
@@ -168,6 +168,6 @@ class LocalServerService {
...
@@ -168,6 +168,6 @@ class LocalServerService {
// }
// }
var
zipFilePath
=
"assets/dist.zip"
;
var
zipFilePath
=
"assets/dist.zip"
;
ZipUtil
.
extractZipFile
(
zipFilePath
,
outputDirectory
);
await
ZipUtil
.
extractZipFile
(
zipFilePath
,
outputDirectory
);
}
}
}
}
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment