remove the temp state from App
This commit is contained in:
13
src/App.vue
13
src/App.vue
@@ -45,19 +45,6 @@
|
||||
<script>
|
||||
export default {
|
||||
name: 'App',
|
||||
data() {
|
||||
return {
|
||||
count: 0
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.interval = setInterval(() => {
|
||||
this.count += 1;
|
||||
}, 1000);
|
||||
},
|
||||
destroyed() {
|
||||
clearInterval(this.interval);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user