update dialog

This commit is contained in:
lb
2022-08-08 16:22:58 +08:00
parent 2911cf2a90
commit a150905840

View File

@@ -3,12 +3,8 @@
</template>
<script>
const compareCache = (dataForm, cache) => {
// 一个简单的比对 dataForm 和 cache 的方法,也许需要优化地更精细
// 由于js不保证对象属性的顺序所以此方法可能在某些情况下失效
// 或者使用 _.isEqual() --- 也不是很完美
return JSON.stringify(dataForm) === JSON.stringify(cache)
}
export default {
name: 'AddOrUpdateDialog',
data() {