Commit f869c639 authored by Adam Procter's avatar Adam Procter

editor page

reloads
parent 2d070ad9
Pipeline #126 failed with stages
in 1 minute and 12 seconds
This diff is collapsed.
<template>
<div class="markdown">
<logo></logo>
<form @submit.prevent="addKnowledge()">
<form @submit="addKnowledge()">
<label>Type: </label>
<select name="type" v-model="type" placeholder="choose">
......@@ -61,37 +61,39 @@ name: 'editor',
})
this.syncData()
},
},
syncData(){
if (db) {
localdb.sync(db)
}
//alert ("did thing")
}
},
checkData(){
db.info().then(function (info) {
// console.log(info);
})
// db.get('one').then(function (doc) {
// console.log(doc);
// });
// checkData(){
// db.info().then(function (info) {
// // console.log(info);
// })
// // db.get('one').then(function (doc) {
// // console.log(doc);
// // });
db.allDocs({
include_docs: true,
attachments: true
}).then(function (result) {
// handle result
// This should reload page ?
// console.log(result)
}).catch(function (err) {
// console.log(err);
});
// db.allDocs({
// include_docs: true,
// attachments: true
// }).then(function (result) {
// // handle result
// this.$router.push("/editor");
// console.log(result)
// // console.log(result)
// }).catch(function (err) {
// // console.log(err);
// });
}
//}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment