Explorar el Código

删除EmptyLayout

lighter hace 1 año
padre
commit
6c0c0f7e84
Se han modificado 2 ficheros con 0 adiciones y 14 borrados
  1. 0 12
      src/layout/EmptyRouter.vue
  2. 0 2
      src/router/index.ts

+ 0 - 12
src/layout/EmptyRouter.vue

@@ -1,12 +0,0 @@
-<template>
-  <router-view v-slot="{ Component }">
-    <transition name="fade-transform" mode="out-in">
-      <keep-alive :exclude="['zhuYuanYiSheng','yiZhuLuRu']">
-        <component :is="Component"/>
-      </keep-alive>
-    </transition>
-  </router-view>
-</template>
-<script setup>
-console.log('空')
-</script>

+ 0 - 2
src/router/index.ts

@@ -22,7 +22,6 @@ const router = createRouter({
 })
 
 const vueFile = import.meta.glob('../views/**/*.{vue,tsx}');
-vueFile.EmptyRouter = import.meta.glob('../layout/EmptyRouter.vue')['../layout/EmptyRouter.vue']
 vueFile.Layout = import.meta.glob('../layout/index.vue')['../layout/index.vue']
 
 let asyncFinished = false
@@ -174,7 +173,6 @@ function recurseChildren(parentPath: string, menus: IntergrationMenu[]) {
     })
 }
 
-
 router.beforeEach(async (to, _from, next) => {
         NProgress.start();
         const hasToken = stringNotBlank(localStorage.token)