fix: 修复src/layout/components/appMain.vue文件中同名词读取解析错误

This commit is contained in:
hu 2023-07-20 20:17:07 +08:00 committed by GitHub
parent 413c375942
commit 616703f7ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ const props = defineProps({
const { $storage, $config } = useGlobal<GlobalPropertiesApi>(); const { $storage, $config } = useGlobal<GlobalPropertiesApi>();
const keepAlive = computed(() => { const isKeepAlive = computed(() => {
return $config?.KeepAlive; return $config?.KeepAlive;
}); });
@ -86,7 +86,7 @@ const transitionMain = defineComponent({
</el-backtop> </el-backtop>
<transitionMain :route="route"> <transitionMain :route="route">
<keep-alive <keep-alive
v-if="keepAlive" v-if="isKeepAlive"
:include="usePermissionStoreHook().cachePageList" :include="usePermissionStoreHook().cachePageList"
> >
<component <component
@ -106,7 +106,7 @@ const transitionMain = defineComponent({
<div v-else> <div v-else>
<transitionMain :route="route"> <transitionMain :route="route">
<keep-alive <keep-alive
v-if="keepAlive" v-if="isKeepAlive"
:include="usePermissionStoreHook().cachePageList" :include="usePermissionStoreHook().cachePageList"
> >
<component <component