在已实现的Vue CLI + vuex中使用Vue-progressbar的正确方法是什么,请使用axios示例进行解释,应与存储或视图一起使用?
我曾经用过一个简单的VueJs内联应用程序,如下所示。
this.$Progress.start();
axios.get('/api/goals?page=' + page)
.then(response => {
// other code
this.$Progress.finish();
})
.catch(function (error) {
this.$Progress.fail();
});
谈论:Vue-progressbar由hilongjw维护