вы можете иметь некоторые дБ
import Vue from 'vue'
import PouchDB from 'pouchdb'
export default () => {
const db = {
dbModel: null,
dbSlider: null,
dbBook: null,
dbContent: null,
dbSession: null,
dbTip: null,
dbLecture: null,
init() {
this.dbModel = new PouchDB('hedayat_noor');
this.dbSlider = new PouchDB('slider');
this.dbBook = new PouchDB('book');
this.dbContent = new PouchDB('content');
this.dbSession = new PouchDB('session');
this.dbTip = new PouchDB('tip');
this.dbLecture = new PouchDB('lecture');
},
};
db.init();
Vue.prototype.$db = db
}