created: function() {
fetch(
"mongodb+srv://Vishnu:passwrd@cluster0.iv05o.mongodb.net/test"
).then(function(response) {
response.json().then(function(json) {
console.log("fetch completed");
webstore.lesson = json;
});
});
}
我试过这种方式,但每次运行它都显示空白