File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -18,18 +18,21 @@ Vue.use(loading)
1818
1919``` vue
2020<template>
21- <h1>Welcome to VueLoading Screen</h1>
21+ <h1>Welcome to VueLoading Screen</h1>
2222</template>
2323
2424<script>
2525 export default {
2626 methods: {
2727 sendHttpRequest () {
2828 this.$isLoading(true) // show loading screen
29- this.$axios.post(url).then(({data}) => {
30- this.$isLoading(false) // hide loading screen
29+ this.$axios.post(url, params)
30+ .then(({data}) => {
3131 console.log(data)
3232 })
33+ .finally(() => {
34+ this.$isLoading(false) // hide loading screen
35+ })
3336 }
3437 },
3538 mounted () {
Original file line number Diff line number Diff line change 11{
22 "name" : " vuejs-loading-screen" ,
3- "version" : " 1.0.9 " ,
3+ "version" : " 1.10.0 " ,
44 "description" : " Blocking screen while process worked" ,
55 "main" : " dist/vuejs-loading-screen.ssr.js" ,
66 "browser" : " dist/vuejs-loading-screen.esm.js" ,
You can’t perform that action at this time.
0 commit comments