Vueページの強制リフレッシュ、またはdivを指定してリフレッシュ
3138 ワード
Vee指定divの強制リフレッシュ
<template>
<div v-if="isReloadData">
div , props , funcation ,
</div>
</template>
<script>
export default {
data () {
return {
//
isReloadData: true
}
},
methods: {
// , this.reload
reload () {
this.isReloadData = false;
this.$nextTick(() => {
this.isReloadData = true;
})
}
}
}
</script>
<style>
</style>