Skip to content

Commit

Permalink
backward compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuiantw1212 committed May 10, 2024
1 parent f257028 commit d134baf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 0 additions & 6 deletions components/calculator/estateDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,6 @@ function confirmUpdate() {
})
}
import { ElMessage, } from 'element-plus'
import { throttle, debounce } from './lodash.js'
const errorMssage = throttle(() => {
ElMessage.error('房屋:家徒四壁!')
}, 4000)
onMounted(() => {
estatePrice.value = JSON.parse(JSON.stringify(props.estatePrice))
estateSize.value = JSON.parse(JSON.stringify(props.estateSize))
Expand Down
3 changes: 3 additions & 0 deletions components/calculator/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ function setUserAndInitialize(form, { showMessage = false }) {
if (form.investment) {
Object.assign(userForm.asset, form.investment)
}
if (form.asset) {
Object.assign(userForm.asset, form.asset)
}
}
if (showMessage) {
ElMessage.info('載入成功')
Expand Down

0 comments on commit d134baf

Please sign in to comment.