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 123edb66
authored
2025-11-03 18:30:39 +0800
by
Administrator
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
入口区分
1 parent
790ce248
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
lib/bloc/web_cubit.dart
lib/bloc/web_cubit.dart
View file @
123edb6
...
...
@@ -223,15 +223,23 @@ class WebCubit extends Cubit<WebState> {
// 启动本地服务器
_server
=
await
LocalServerService
().
startLocalServer
();
final
String
serverUrl
;
String
serverUrl
;
if
(
state
.
sessionCode
==
null
||
state
.
sessionCode
==
''
)
{
serverUrl
=
'
${Constant.localServerTestFileUrl}
/login.html'
;
if
(
Platform
.
isAndroid
||
Platform
.
isIOS
)
{
serverUrl
=
'
${Constant.localServerUrl}
/login.html'
;
}
else
if
(
Platform
.
isMacOS
){
serverUrl
=
'
${Constant.localServerUrl}
/index.html'
;
}
else
{
serverUrl
=
'
${Constant.localServerUrl}
/login.html'
;
}
// serverUrl = '${Constant.localServerTestFileUrl}/test2.html';
}
else
{
serverUrl
=
'http://
${state.ip}
:
${_server.port}
/index.html#/h5/login/pages/applogin?sessionCode=
${state.sessionCode}
&userCode=
${state.userCode}
&classCode=
${state.classCode}
&userType=
${state.userType}
&stuId=
${state.stuId}
'
;
}
serverUrl
=
'
${Constant.localServerUrl}
/index.html'
;
_controller
.
loadRequest
(
Uri
.
parse
(
serverUrl
));
}
...
...
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