From 1595cb282aab5399862fac6406b5de550863e3b6 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期一, 03 四月 2023 00:05:09 +0800
Subject: [PATCH] update 调整代码格式

---
 src/store/modules/app.ts |  120 ++++++++++++++++++++++++++++++------------------------------
 1 files changed, 60 insertions(+), 60 deletions(-)

diff --git a/src/store/modules/app.ts b/src/store/modules/app.ts
index b53dbad..fd47c82 100644
--- a/src/store/modules/app.ts
+++ b/src/store/modules/app.ts
@@ -3,71 +3,71 @@
 import en from 'element-plus/es/locale/lang/en';
 
 export const useAppStore = defineStore('app', () => {
-	const sidebarStatus = Cookies.get('sidebarStatus');
-	const sidebar = reactive({
-		opened: sidebarStatus ? !!+sidebarStatus : true,
-		withoutAnimation: false,
-		hide: false
-	});
-	const device = ref<string>('desktop');
-	const size = ref(Cookies.get('size') || 'default');
-	// 璇█
-	const language = ref(Cookies.get('language'));
-	const locale = computed(() => {
-		if (language?.value == 'en') {
-			return en;
-		} else {
-			return zhCn;
-		}
-	});
+  const sidebarStatus = Cookies.get('sidebarStatus');
+  const sidebar = reactive({
+    opened: sidebarStatus ? !!+sidebarStatus : true,
+    withoutAnimation: false,
+    hide: false
+  });
+  const device = ref<string>('desktop');
+  const size = ref(Cookies.get('size') || 'default');
+  // 璇█
+  const language = ref(Cookies.get('language'));
+  const locale = computed(() => {
+    if (language?.value == 'en') {
+      return en;
+    } else {
+      return zhCn;
+    }
+  });
 
-	const toggleSideBar = (withoutAnimation?: boolean) => {
-		if (sidebar.hide) {
-			return false;
-		}
+  const toggleSideBar = (withoutAnimation?: boolean) => {
+    if (sidebar.hide) {
+      return false;
+    }
 
-		sidebar.opened = !sidebar.opened;
-		sidebar.withoutAnimation = withoutAnimation as boolean;
-		if (sidebar.opened) {
-			Cookies.set('sidebarStatus', '1');
-		} else {
-			Cookies.set('sidebarStatus', '0');
-		}
-	};
+    sidebar.opened = !sidebar.opened;
+    sidebar.withoutAnimation = withoutAnimation as boolean;
+    if (sidebar.opened) {
+      Cookies.set('sidebarStatus', '1');
+    } else {
+      Cookies.set('sidebarStatus', '0');
+    }
+  };
 
-	const closeSideBar = ({ withoutAnimation }: any): void => {
-		Cookies.set('sidebarStatus', '0');
-		sidebar.opened = false;
-		sidebar.withoutAnimation = withoutAnimation;
-	};
-	const toggleDevice = (d: string): void => {
-		device.value = d;
-	};
-	const setSize = (s: string): void => {
-		size.value = s;
-		Cookies.set('size', s);
-	};
-	const toggleSideBarHide = (status: boolean): void => {
-		sidebar.hide = status;
-	};
+  const closeSideBar = ({ withoutAnimation }: any): void => {
+    Cookies.set('sidebarStatus', '0');
+    sidebar.opened = false;
+    sidebar.withoutAnimation = withoutAnimation;
+  };
+  const toggleDevice = (d: string): void => {
+    device.value = d;
+  };
+  const setSize = (s: string): void => {
+    size.value = s;
+    Cookies.set('size', s);
+  };
+  const toggleSideBarHide = (status: boolean): void => {
+    sidebar.hide = status;
+  };
 
-	const changeLanguage = (val: string): void => {
-		language.value = val;
-	};
+  const changeLanguage = (val: string): void => {
+    language.value = val;
+  };
 
-	return {
-		device,
-		sidebar,
-		language,
-		locale,
-		size,
-		changeLanguage,
-		toggleSideBar,
-		closeSideBar,
-		toggleDevice,
-		setSize,
-		toggleSideBarHide
-	};
+  return {
+    device,
+    sidebar,
+    language,
+    locale,
+    size,
+    changeLanguage,
+    toggleSideBar,
+    closeSideBar,
+    toggleDevice,
+    setSize,
+    toggleSideBarHide
+  };
 });
 
 export default useAppStore;

--
Gitblit v1.9.3