Ver código fonte

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

hu 1 ano atrás
pai
commit
616703f7ed
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      src/layout/components/appMain.vue

+ 3 - 3
src/layout/components/appMain.vue

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