Skip to content

Commit 7211ba3

Browse files
committed
request release
1 parent 8f4a556 commit 7211ba3

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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 () {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)