讲师管理bug

This commit is contained in:
zhangsir
2024-11-12 18:53:19 +08:00
parent fd1f306510
commit fd3563858c
9 changed files with 47 additions and 20 deletions

View File

@@ -8,7 +8,11 @@
<bread-crumb/>
<main>
<a-config-provider :locale="zhCN">
<router-view/>
<router-view v-slot="{ Component }">
<keep-alive :include="isInclude">
<component :is="Component"/>
</keep-alive>
</router-view>
</a-config-provider>
</main>
</div>
@@ -19,7 +23,7 @@
</div>
</template>
<script setup>
import {ref, onMounted} from "vue";
import {ref, onMounted,computed} from "vue";
import {useStore, createStore} from "vuex";
import NavLeft from "@/components/NavLeft";
import NavTop from "@/components/NavTop";
@@ -33,7 +37,7 @@ import {USER_PERMISSION, VALIDATE_TOKEN} from "@/api/apis";
const store = useStore();
const isLogin = ref(false);
const isInclude = computed(()=>store.state.isInclude)
console.log("版本3.3.2------------");