Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GaoQuYingJiH5-ASD
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xinzhedeai
GaoQuYingJiH5-ASD
Commits
35298650
Commit
35298650
authored
Aug 05, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:首页白屏,错误请求重试处理 3次
parent
db3670e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
home.js
home.js
+15
-1
No files found.
home.js
View file @
35298650
...
...
@@ -44,7 +44,8 @@ window.onload = function() {
accessType
:
'
manage
'
,
// 访问类型 shop商家 saoma 扫码 manage 管理
// 修改默认菜单结构为最小化配置
menuList
:
[],
remindStatistic
:
[]
remindStatistic
:
[],
errorReqCount
:
0
,
}
},
mounted
()
{
...
...
@@ -151,6 +152,10 @@ window.onload = function() {
var
result
=
JSON
.
parse
(
res
)
if
(
result
.
code
!==
200
&&
result
.
data
==
null
)
{
console
.
log
(
'
getUserInfo=>code200datanull
'
)
if
(
this
.
errorReqCount
<=
3
){
this
.
errorReqCount
++
this
.
init
()
// 请求错误后,重新发起请求
}
return
}
this
.
userInfo
=
{
...
...
@@ -207,6 +212,15 @@ window.onload = function() {
(
res
)
=>
{
if
(
res
)
{
var
result
=
JSON
.
parse
(
res
)
if
(
result
.
code
!==
200
&&
result
.
data
==
null
)
{
console
.
log
(
'
getStatisticData=>code200datanull
'
)
if
(
this
.
errorReqCount
<=
3
){
this
.
errorReqCount
++
this
.
init
()
// 请求错误后,重新发起请求
}
return
}
console
.
log
(
'
用户Data
'
,
result
)
this
.
userData
=
result
.
data
resolve
();
...
...
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