refactor: folders

This commit is contained in:
张传龙
2022-09-18 20:05:40 +08:00
parent bdbe9b8483
commit 6664ae8f7b
45 changed files with 138 additions and 139 deletions

View File

@@ -7,7 +7,7 @@
</template>
<script setup>
import { useAppStore } from '@/store/modules/app'
import { useAppStore } from '@/store'
import { useRouter } from 'vue-router'
const appStore = useAppStore()
const router = useRouter()

View File

@@ -12,7 +12,7 @@
</template>
<script setup>
import { renderCustomIcon, renderIcon } from '@/utils/icon'
import { renderCustomIcon, renderIcon } from '@/utils'
const router = useRouter()
const route = useRoute()

View File

@@ -6,7 +6,7 @@
</template>
<script setup>
import { useAppStore } from '@/store/modules/app'
import { useAppStore } from '@/store'
const appStore = useAppStore()
</script>

View File

@@ -8,8 +8,8 @@
</template>
<script setup>
import { useUserStore } from '@/store/modules/user'
import { renderIcon } from '@/utils/icon'
import { useUserStore } from '@/store'
import { renderIcon } from '@/utils'
const userStore = useUserStore()

View File

@@ -8,7 +8,7 @@
</template>
<script setup>
import { useAppStore } from '@/store/modules/app'
import { useAppStore } from '@/store'
const title = import.meta.env.VITE_TITLE
const appStore = useAppStore()

View File

@@ -12,11 +12,8 @@
</template>
<script setup>
import { usePermissionStore } from '@/store/modules/permission'
import { isExternal } from '@/utils/is'
import { useAppStore } from '@/store/modules/app'
import { renderCustomIcon, renderIcon } from '@/utils/icon'
import { usePermissionStore, useAppStore } from '@/store'
import { renderCustomIcon, renderIcon, isExternal } from '@/utils'
const router = useRouter()
const curRoute = useRoute()

View File

@@ -11,9 +11,8 @@
</template>
<script setup>
import { useTagsStore } from '@/store/modules/tags'
import { renderIcon } from '@/utils/icon'
import { useAppStore } from '@/store/modules/app'
import { useTagsStore, useAppStore } from '@/store'
import { renderIcon } from '@/utils'
const props = defineProps({
show: {

View File

@@ -24,7 +24,7 @@
<script setup>
import ContextMenu from './ContextMenu.vue'
import { useTagsStore } from '@/store/modules/tags'
import { useTagsStore } from '@/store'
import ScrollX from '@/components/common/ScrollX.vue'
const route = useRoute()