lilishop-ui/im/src/App.vue

24 lines
412 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<template>
<div id="app">
<router-view v-if="showView" />
</div>
</template>
<script>
export default {
name: 'App',
data() {
return {
// 用于点击当前页的router时刷新当前页
showView: true,
}
},
methods: {
// 刷新当前路由方法
refreshView() {
this.showView = false
this.$nextTick(() => (this.showView = true))
},
},
}
</script>