修复打印预览里面 币种 默认不显示情况
This commit is contained in:
@@ -185,20 +185,26 @@
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
loadCurrencyOptions()
|
||||
// 设置默认币种
|
||||
if (props.defaultCurrency) {
|
||||
selectedCurrency.value = props.defaultCurrency
|
||||
} else {
|
||||
selectedCurrency.value = 'USD'
|
||||
}
|
||||
// 监听 visible 变化,加载币种选项
|
||||
watch(
|
||||
() => props.visible,
|
||||
(newVisible) => {
|
||||
if (newVisible) {
|
||||
loadCurrencyOptions()
|
||||
// 设置默认币种
|
||||
if (props.defaultCurrency) {
|
||||
selectedCurrency.value = props.defaultCurrency
|
||||
} else {
|
||||
selectedCurrency.value = 'USD'
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
// watch(
|
||||
// () => props.visible,
|
||||
// (newVisible) => {
|
||||
// if (newVisible) {
|
||||
// loadCurrencyOptions()
|
||||
// // 设置默认币种
|
||||
// if (props.defaultCurrency) {
|
||||
// selectedCurrency.value = props.defaultCurrency
|
||||
// } else {
|
||||
// selectedCurrency.value = 'USD'
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// )
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user