You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
440 B
Vue
34 lines
440 B
Vue
6 years ago
|
<template>
|
||
|
<div id="app">
|
||
|
<router-view/>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
name: 'App',
|
||
|
provide() {
|
||
|
return {
|
||
|
reload: this.reload
|
||
|
}
|
||
|
},
|
||
|
data() {
|
||
|
return {
|
||
|
isAlive: true
|
||
|
}
|
||
|
},
|
||
|
methods: {
|
||
|
reload() {
|
||
|
this.isAlive = false;
|
||
|
this.$nextTick(function () {
|
||
|
this.isAlive = true
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style>
|
||
|
|
||
|
</style>
|