feat: LimitSettingModal 初始化 targetCount 和 quotaType 为固定默认值
This commit is contained in:
parent
cd4d00b013
commit
df35a1a5bf
@ -36,8 +36,8 @@ const currentRemaining = computed(() => props.userData?.remaining_count ?? 0)
|
|||||||
watch(() => props.userData, (newData) => {
|
watch(() => props.userData, (newData) => {
|
||||||
if (newData && Object.keys(newData).length > 0) {
|
if (newData && Object.keys(newData).length > 0) {
|
||||||
limitForm.value = {
|
limitForm.value = {
|
||||||
targetCount: newData.remaining_count || 0,
|
targetCount: 0,
|
||||||
quotaType: newData.user_type || '免费体验',
|
quotaType: '免费体验',
|
||||||
remark: ''
|
remark: ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user