mirror of
				https://github.com/pure-admin/vue-pure-admin.git
				synced 2025-11-03 13:44:47 +08:00 
			
		
		
		
	fix: update
This commit is contained in:
		
							parent
							
								
									54a0e457b4
								
							
						
					
					
						commit
						c95126adf5
					
				@ -1,14 +1,12 @@
 | 
			
		||||
<script setup lang="ts">
 | 
			
		||||
import path from "path";
 | 
			
		||||
import { storageLocal } from "/@/utils/storage";
 | 
			
		||||
import { PropType, ref, nextTick } from "vue";
 | 
			
		||||
import { PropType, ref, nextTick, getCurrentInstance } from "vue";
 | 
			
		||||
import { childrenType } from "../../types";
 | 
			
		||||
import { useAppStoreHook } from "/@/store/modules/app";
 | 
			
		||||
import Icon from "/@/components/ReIcon/src/Icon.vue";
 | 
			
		||||
const layout = ref(
 | 
			
		||||
  storageLocal.getItem("responsive-layout") || "vertical-dark"
 | 
			
		||||
);
 | 
			
		||||
const menuMode = layout.value.layout.split("-")[0] === "vertical";
 | 
			
		||||
 | 
			
		||||
const instance = getCurrentInstance().appContext.app.config.globalProperties;
 | 
			
		||||
const menuMode = instance.$storage.layout?.layout === "vertical";
 | 
			
		||||
const pureApp = useAppStoreHook();
 | 
			
		||||
 | 
			
		||||
const props = defineProps({
 | 
			
		||||
@ -140,7 +138,7 @@ function resolvePath(routePath) {
 | 
			
		||||
    popper-append-to-body
 | 
			
		||||
  >
 | 
			
		||||
    <template #title>
 | 
			
		||||
      <el-icon v-show="props.item.meta.icon" :class="props.item.meta.icon"> 
 | 
			
		||||
      <el-icon v-show="props.item.meta.icon" :class="props.item.meta.icon">
 | 
			
		||||
        <component :is="props.item.meta && props.item.meta.icon"></component>
 | 
			
		||||
      </el-icon>
 | 
			
		||||
      <span v-if="!menuMode">{{ $t(props.item.meta.title) }}</span>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user