Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
simple-posters
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e99b3168
authored
Dec 04, 2025
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 修复升级计数在获取数据前被设置的问题
确保在获取订单数据后再设置升级计数,避免潜在的未定义错误
1 parent
c09b49a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/views/goodNews.vue
src/views/goodNews.vue
View file @
e99b316
...
@@ -68,7 +68,6 @@ const orderInfo = ref({
...
@@ -68,7 +68,6 @@ const orderInfo = ref({
const
upgradeCount
=
ref
(
'0'
)
const
upgradeCount
=
ref
(
'0'
)
const
month
=
ref
(
`${new Date().getMonth() + 1
}
月份`
)
const
month
=
ref
(
`${new Date().getMonth() + 1
}
月份`
)
const
getInfo
=
async
()
=>
{
const
getInfo
=
async
()
=>
{
upgradeCount
.
value
=
convertToChinaNum
(
orderInfo
.
value
.
orderNum
);
window
.
fetch
(
global
.
baseUrl
+
'/open/report/data/'
+
query
.
msgId
,
{
window
.
fetch
(
global
.
baseUrl
+
'/open/report/data/'
+
query
.
msgId
,
{
method
:
'GET'
,
method
:
'GET'
,
headers
:
{
headers
:
{
...
@@ -76,6 +75,7 @@ const getInfo = async () => {
...
@@ -76,6 +75,7 @@ const getInfo = async () => {
}
}
}
).
then
(
res
=>
res
.
json
()).
then
(
json
=>
{
}
).
then
(
res
=>
res
.
json
()).
then
(
json
=>
{
orderInfo
.
value
=
json
.
data
orderInfo
.
value
=
json
.
data
upgradeCount
.
value
=
convertToChinaNum
(
orderInfo
.
value
.
orderNum
);
console
.
log
(
json
)
console
.
log
(
json
)
}
)
}
)
}
;
}
;
...
...
Write
Preview
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