mirror of
				https://github.com/pure-admin/vue-pure-admin.git
				synced 2025-11-03 13:44:47 +08:00 
			
		
		
		
	style: [sidebar.scss] delete overflow-x: auto
This commit is contained in:
		
							parent
							
								
									b18654f52e
								
							
						
					
					
						commit
						d4d4157cc4
					
				@ -129,14 +129,12 @@ export default defineComponent({
 | 
				
			|||||||
    function translationCh() {
 | 
					    function translationCh() {
 | 
				
			||||||
      instance.locale = { locale: "zh" };
 | 
					      instance.locale = { locale: "zh" };
 | 
				
			||||||
      locale.value = "zh";
 | 
					      locale.value = "zh";
 | 
				
			||||||
      window.location.reload();
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // English
 | 
					    // English
 | 
				
			||||||
    function translationEn() {
 | 
					    function translationEn() {
 | 
				
			||||||
      instance.locale = { locale: "en" };
 | 
					      instance.locale = { locale: "en" };
 | 
				
			||||||
      locale.value = "en";
 | 
					      locale.value = "en";
 | 
				
			||||||
      window.location.reload();
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return {
 | 
					    return {
 | 
				
			||||||
 | 
				
			|||||||
@ -78,6 +78,8 @@ import {
 | 
				
			|||||||
  defineComponent,
 | 
					  defineComponent,
 | 
				
			||||||
  unref,
 | 
					  unref,
 | 
				
			||||||
  watch,
 | 
					  watch,
 | 
				
			||||||
 | 
					  nextTick,
 | 
				
			||||||
 | 
					  onMounted,
 | 
				
			||||||
  getCurrentInstance
 | 
					  getCurrentInstance
 | 
				
			||||||
} from "vue";
 | 
					} from "vue";
 | 
				
			||||||
import { useI18n } from "vue-i18n";
 | 
					import { useI18n } from "vue-i18n";
 | 
				
			||||||
@ -137,6 +139,7 @@ export default defineComponent({
 | 
				
			|||||||
    const instance =
 | 
					    const instance =
 | 
				
			||||||
      getCurrentInstance().appContext.config.globalProperties.$storage;
 | 
					      getCurrentInstance().appContext.config.globalProperties.$storage;
 | 
				
			||||||
    const menuRef = templateRef<ElRef | null>("menu", null);
 | 
					    const menuRef = templateRef<ElRef | null>("menu", null);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const routeStore = usePermissionStoreHook();
 | 
					    const routeStore = usePermissionStoreHook();
 | 
				
			||||||
    const route = useRoute();
 | 
					    const route = useRoute();
 | 
				
			||||||
    const router = useRouter();
 | 
					    const router = useRouter();
 | 
				
			||||||
@ -198,19 +201,30 @@ export default defineComponent({
 | 
				
			|||||||
      router.push("/welcome");
 | 
					      router.push("/welcome");
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    function handleResize() {
 | 
				
			||||||
 | 
					      menuRef.value.handleResize();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // 简体中文
 | 
					    // 简体中文
 | 
				
			||||||
    function translationCh() {
 | 
					    function translationCh() {
 | 
				
			||||||
      instance.locale = { locale: "zh" };
 | 
					      instance.locale = { locale: "zh" };
 | 
				
			||||||
      locale.value = "zh";
 | 
					      locale.value = "zh";
 | 
				
			||||||
 | 
					      handleResize();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // English
 | 
					    // English
 | 
				
			||||||
    function translationEn() {
 | 
					    function translationEn() {
 | 
				
			||||||
      instance.locale = { locale: "en" };
 | 
					      instance.locale = { locale: "en" };
 | 
				
			||||||
      locale.value = "en";
 | 
					      locale.value = "en";
 | 
				
			||||||
      menuRef.value.handleResize();
 | 
					      handleResize();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    onMounted(() => {
 | 
				
			||||||
 | 
					      nextTick(() => {
 | 
				
			||||||
 | 
					        handleResize();
 | 
				
			||||||
 | 
					      });
 | 
				
			||||||
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return {
 | 
					    return {
 | 
				
			||||||
      locale,
 | 
					      locale,
 | 
				
			||||||
      usename,
 | 
					      usename,
 | 
				
			||||||
 | 
				
			|||||||
@ -161,8 +161,6 @@
 | 
				
			|||||||
      height: 100%;
 | 
					      height: 100%;
 | 
				
			||||||
      min-width: 0;
 | 
					      min-width: 0;
 | 
				
			||||||
      flex: 1;
 | 
					      flex: 1;
 | 
				
			||||||
      // todo::
 | 
					 | 
				
			||||||
      overflow-x: auto;
 | 
					 | 
				
			||||||
      align-items: center;
 | 
					      align-items: center;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user