Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wifi
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xhw
wifi
Commits
9730c198
Commit
9730c198
authored
Apr 28, 2025
by
xhw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
d2b6c85b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
index.html
+6
-9
No files found.
index.html
View file @
9730c198
...
@@ -188,18 +188,15 @@
...
@@ -188,18 +188,15 @@
if
(
!
response
.
ok
)
if
(
!
response
.
ok
)
throw
new
Error
(
'Network response was not ok'
);
throw
new
Error
(
'Network response was not ok'
);
return
response
.
json
();
return
response
.
json
();
}
}).
then
(
data
=>
{
).
then
(
data
=>
{
console
.
log
(
'Success:'
,
data
);
console
.
log
(
'Success:'
,
data
);
// 在这里添加成功处理逻辑
// 在这里添加成功处理逻辑
alert
(
'WiFi配置成功!'
);
alert
(
'WiFi配置成功!'
);
}
}).
catch
(
error
=>
{
).
catch
(
error
=>
{
console
.
error
(
'Error:'
,
error
);
console
.
error
(
'Error:'
,
error
);
// 在这里添加错误处理逻辑
// 在这里添加错误处理逻辑
// alert('配置失败,请重试');
alert
(
'配置失败,请重试'
);
});
}
);
}
}
...
...
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