1 2 3 4 5 6 7 8 9 10 11 12 13 14
import { isEqual } from 'lodash' import Setting from './setting.js' export default { ...Setting, computed: { ...Setting.computed, isDirty () { console.log(this.state, this.draft) return !isEqual(this.state, this.draft) } } }