Browse Source

style: format code

nian 1 month ago
parent
commit
61a9cef3e1
3 changed files with 1 additions and 4 deletions
  1. 0 1
      src/components/Logo.vue
  2. 0 1
      src/helpers/resetSystemData.ts
  3. 1 2
      src/utils/lodash-heplers.test.ts

+ 0 - 1
src/components/Logo.vue

@@ -1,4 +1,3 @@
-<script setup lang="ts"></script>
 <template>
   <div class="size-full shrink-0">
     <div class="size-full rounded bg-primary/10"></div>

+ 0 - 1
src/helpers/resetSystemData.ts

@@ -8,7 +8,6 @@ const tabsStore = useTabsStore()
 const userStore = useUserStore()
 
 export function resetSystemData() {
-
   const oldLocalStorage = localStorage.getItem('configure')
   if (oldLocalStorage || !haveSameKeys(preferencesStore.preferences, DEFAULT_PREFERENCES_OPTIONS)) {
     tabsStore.clearTabs()

+ 1 - 2
src/utils/lodash-heplers.test.ts

@@ -4,7 +4,6 @@ import { getAllKeys, haveSameKeys, mergeWithArrayReplace } from './lodash-helper
 
 describe('lodash-helpers', () => {
   it('should be mergeWithArrayReplace', () => {
-
     const obj1 = {
       a: 1,
       b: 2,
@@ -13,7 +12,7 @@ describe('lodash-helpers', () => {
         e: 4,
         f: 5,
       },
-      g: [1, 2]
+      g: [1, 2],
     }
 
     const obj2 = {