mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-11 04:28:55 +08:00
remove saveDbName method (refactor)
This commit is contained in:
@@ -65,8 +65,8 @@ export default {
|
||||
methods: {
|
||||
changeDb () {
|
||||
this.$db.loadDb(this.$refs.dbfile.files[0])
|
||||
.then((schema) => {
|
||||
this.$store.commit('saveSchema', schema)
|
||||
.then(({ dbName, schema }) => {
|
||||
this.$store.commit('saveSchema', { dbName, schema })
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user