Bläddra i källkod

fix: delete routerView

xiaoxian521 3 år sedan
förälder
incheckning
3ca4729421
3 ändrade filer med 0 tillägg och 18 borttagningar
  1. 0 1
      src/layout/components/appMain.vue
  2. 0 15
      src/layout/routerView/parent.vue
  3. 0 2
      src/router/modules/nested.ts

+ 0 - 1
src/layout/components/appMain.vue

@@ -7,7 +7,6 @@ import {
   defineComponent,
   getCurrentInstance
 } from "vue";
-import { RouterView } from "vue-router";
 import backTop from "/@/assets/svg/back_top.svg?component";
 import { usePermissionStoreHook } from "/@/store/modules/permission";
 

+ 0 - 15
src/layout/routerView/parent.vue

@@ -1,15 +0,0 @@
-<template>
-  <router-view>
-    <template #default="{ Component, route }">
-      <transition appear name="fade-transform" mode="out-in">
-        <component :is="Component" :key="route.fullPath" />
-      </transition>
-    </template>
-  </router-view>
-</template>
-
-<script lang="ts">
-export default {
-  name: "layoutParentView"
-};
-</script>

+ 0 - 2
src/router/modules/nested.ts

@@ -15,7 +15,6 @@ const nestedRouter = {
   children: [
     {
       path: "/nested/menu1",
-      component: () => import("/@/layout/routerView/parent.vue"),
       name: "Menu1",
       meta: {
         title: $t("menus.hsmenu1"),
@@ -36,7 +35,6 @@ const nestedRouter = {
         },
         {
           path: "/nested/menu1/menu1-2",
-          component: () => import("/@/layout/routerView/parent.vue"),
           name: "Menu1-2",
           redirect: "/nested/menu1/menu1-2/menu1-2-1",
           meta: {