mirror of
				https://github.com/pure-admin/vue-pure-admin.git
				synced 2025-11-03 13:44:47 +08:00 
			
		
		
		
	fix: delete realPath
This commit is contained in:
		
							parent
							
								
									955b76f30a
								
							
						
					
					
						commit
						903e298951
					
				@ -99,7 +99,6 @@ const tabsRouter = {
 | 
			
		||||
        showLink: false,
 | 
			
		||||
        i18n: false,
 | 
			
		||||
        dynamicLevel: 3,
 | 
			
		||||
        realPath: "/tabs/detail",
 | 
			
		||||
        refreshRedirect: "/tabs/index"
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -44,7 +44,6 @@ import {
 | 
			
		||||
  ElCollapse,
 | 
			
		||||
  ElCollapseItem,
 | 
			
		||||
  ElTreeV2,
 | 
			
		||||
  ElColorPicker,
 | 
			
		||||
  // 指令
 | 
			
		||||
  ElLoading,
 | 
			
		||||
  ElInfiniteScroll
 | 
			
		||||
@ -97,8 +96,7 @@ const components = [
 | 
			
		||||
  ElEmpty,
 | 
			
		||||
  ElCollapse,
 | 
			
		||||
  ElCollapseItem,
 | 
			
		||||
  ElTreeV2,
 | 
			
		||||
  ElColorPicker
 | 
			
		||||
  ElTreeV2
 | 
			
		||||
];
 | 
			
		||||
 | 
			
		||||
// https://element-plus.org/zh-CN/component/icon.html
 | 
			
		||||
 | 
			
		||||
@ -216,11 +216,7 @@ const addAsyncRoutes = (arrRoutes: Array<RouteRecordRaw>) => {
 | 
			
		||||
    if (v.redirect) {
 | 
			
		||||
      v.component = Layout;
 | 
			
		||||
    } else {
 | 
			
		||||
      if (v.meta.realPath) {
 | 
			
		||||
        v.component = modulesRoutes[`/src/views${v.meta.realPath}/index.vue`];
 | 
			
		||||
      } else {
 | 
			
		||||
        v.component = modulesRoutes[`/src/views${v.path}/index.vue`];
 | 
			
		||||
      }
 | 
			
		||||
      v.component = modulesRoutes[`/src/views${v.path}/index.vue`];
 | 
			
		||||
    }
 | 
			
		||||
    if (v.children) {
 | 
			
		||||
      addAsyncRoutes(v.children);
 | 
			
		||||
 | 
			
		||||
@ -17,8 +17,7 @@ function toDetail(index: number) {
 | 
			
		||||
      title: { zh: `No.${index} - 详情信息`, en: `No.${index} - DetailInfo` },
 | 
			
		||||
      showLink: false,
 | 
			
		||||
      i18n: false,
 | 
			
		||||
      dynamicLevel: 3,
 | 
			
		||||
      realPath: "/tabs/detail"
 | 
			
		||||
      dynamicLevel: 3
 | 
			
		||||
    }
 | 
			
		||||
  });
 | 
			
		||||
  router.push({ name: "tabDetail", query: { id: String(index) } });
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user