fix🐛: 解决切换语言不会监听的问题

This commit is contained in:
MTrun
2022-01-07 12:25:23 +08:00
parent 4333b58938
commit 34722916b0
18 changed files with 54 additions and 26 deletions
+3
View File
@@ -0,0 +1,3 @@
import Reload from './index.vue';
export { Reload };
+20
View File
@@ -0,0 +1,20 @@
<template>
<div class="go-reload"></div>
</template>
<script lang="ts" setup>
import { onMounted } from 'vue'
import router from '@/router'
// 重新加载前路径页面
onMounted(() => {
router.go(-1)
})
</script>
<style lang="scss" scoped>
@include go('reload') {
height: 100vh;
width: 100vw;
@include filter-bg-color('background-color')
}
</style>