mirror of
				https://github.com/pure-admin/vue-pure-admin.git
				synced 2025-11-03 13:44:47 +08:00 
			
		
		
		
	fix: 修复强制刷新页面getTopMenu()函数获取不到path报错的问题
				
					
				
			This commit is contained in:
		
							parent
							
								
									727216acce
								
							
						
					
					
						commit
						b29500c4ed
					
				@ -7,7 +7,7 @@ const props = defineProps({
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
const { title } = useNav();
 | 
			
		||||
const topPath = getTopMenu().path;
 | 
			
		||||
const topPath = getTopMenu()?.path;
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<template>
 | 
			
		||||
 | 
			
		||||
@ -50,7 +50,7 @@ const tabDom = ref();
 | 
			
		||||
const containerDom = ref();
 | 
			
		||||
const scrollbarDom = ref();
 | 
			
		||||
const isShowArrow = ref(false);
 | 
			
		||||
const topPath = getTopMenu().path;
 | 
			
		||||
const topPath = getTopMenu()?.path;
 | 
			
		||||
const { VITE_HIDE_HOME } = import.meta.env;
 | 
			
		||||
const { isFullscreen, toggle } = useFullscreen();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -88,7 +88,7 @@ export function useNav() {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  function backTopMenu() {
 | 
			
		||||
    router.push(getTopMenu().path);
 | 
			
		||||
    router.push(getTopMenu()?.path);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  function onPanel() {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user