add lodash

Former-commit-id: 7906aee3e7b214b4d70d73d60f9ac001155ebdf6 [formerly 7906aee3e7b214b4d70d73d60f9ac001155ebdf6 [formerly 7906aee3e7b214b4d70d73d60f9ac001155ebdf6 [formerly 7906aee3e7b214b4d70d73d60f9ac001155ebdf6 [formerly 73ea160b23495f950ee69827a5c13d36a3e97fbb [formerly 9ef81430726fa668b012ee37224e42c19bd10ead]]]]]
Former-commit-id: 6ab56dac7d0f52becc925f670792f9670f33b558
Former-commit-id: b288cfb0c1c6878a42c886c3500692ff1c91f23a
Former-commit-id: b3ceec55c70f26d49f4e258c3515d453f040b365 [formerly efb78f7126a3512f4522965ea7a114b300506693]
Former-commit-id: 2c78d9a1540bc86e3cee333f2ae4053e349b141c
Former-commit-id: fc17089e3aaf1d3297cd0756f309c6fd332e90c4
Former-commit-id: ba1a80dd8dccbc54a34b904f341ce22cb4de6f27
Former-commit-id: d26afea6acaee187772fe9308cb7e8c4e889ec40
Former-commit-id: b1037ca3fdb2886a5544b04d47eef55bacbb1199
This commit is contained in:
liyang
2018-08-12 23:18:28 +08:00
parent 1e552a8199
commit 957b87e2e8
14 changed files with 23 additions and 30 deletions

View File

@@ -84,8 +84,7 @@ export default {
* 清空当前用户的数据
*/
async handleClear () {
const db = await this.databaseClear()
// db 是已经清空了的数据库对象 没有后续操作的话可以不接收这个值
await this.databaseClear()
this.load()
},
/**

View File

@@ -84,8 +84,7 @@ export default {
* 清空当前用户的数据
*/
async handleClear () {
const db = await this.databaseByUserClear()
// db 是已经清空了的数据库对象 没有后续操作的话可以不接收这个值
await this.databaseByUserClear()
this.load()
},
/**

View File

@@ -20,7 +20,7 @@
</template>
<script>
import clonedeep from 'lodash.clonedeep'
import { cloneDeep } from 'lodash'
import { mapState, mapMutations } from 'vuex'
export default {
data () {
@@ -55,8 +55,8 @@ export default {
])
},
created () {
this.headerBak = clonedeep(this.header)
this.asideBak = clonedeep(this.aside)
this.headerBak = cloneDeep(this.header)
this.asideBak = cloneDeep(this.aside)
},
beforeDestroy () {
if (this.headerChanged && this.asideChanged) {