Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
digitalPerson-fe
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
digitalPerson
digitalPerson-fe
Commits
25c7d43f
Commit
25c7d43f
authored
Sep 29, 2024
by
tyyin lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 礼品兑换后次数没更新
parent
322d93db
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
gift-code-redemption.vue
src/views/index/components/gift-code-redemption.vue
+4
-0
No files found.
src/views/index/components/gift-code-redemption.vue
View file @
25c7d43f
...
...
@@ -2,10 +2,12 @@
import
{
fetchGiftCodeRedemption
}
from
'@/apis/gift-redemption'
import
type
{
FormInst
}
from
'naive-ui'
import
{
ref
,
shallowReadonly
,
useTemplateRef
}
from
'vue'
import
{
useUserStore
}
from
'@/store/modules/user'
const
isShowGiftCodeRedemptionModal
=
defineModel
<
boolean
>
(
'isShowGiftCodeRedemptionModal'
,
{
default
:
false
})
const
exchangeInfoFormRef
=
useTemplateRef
<
FormInst
>
(
'exchangeInfoFormRef'
)
const
userStore
=
useUserStore
()
const
exchangeInfoForm
=
ref
({
redemptionCode
:
''
,
...
...
@@ -41,6 +43,8 @@ function handleExchangeSubmit() {
size
:
'medium'
,
},
})
userStore
.
fetchUpdateUserInfo
()
},
100
)
})
.
catch
(()
=>
{
...
...
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