var $url="/syncDatabase",data=utils.init({pageType:"prepare",databaseVersion:null,version:null}),methods={apiGet:function(){var t=this;utils.loading(this,!0),$api.get($url).then(function(a){var e=a.data;t.databaseVersion=e.databaseVersion,t.version=e.version}).catch(function(t){utils.error(t)}).then(function(){utils.loading(t,!1)})},apiUpdate:function(){var t=this;$api.post($url).then(function(a){t.pageType="done"}).catch(function(t){utils.error(t)})},getDocsUrl:function(){return cloud.getDocsUrl("")},btnStartClick:function(t){t.preventDefault(),this.pageType="update",this.apiUpdate()}},$vue=new Vue({el:"#main",data:data,methods:methods,created:function(){this.apiGet()}});