lb #1

Merged
gtz217 merged 128 commits from lb into develop 2022-09-20 14:53:17 +08:00
Showing only changes of commit a150905840 - Show all commits

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() {