调整目录结构

This commit is contained in:
hooray 2022-07-30 01:37:40 +08:00
parent 80182c54c3
commit 421a8e0612
22 changed files with 18 additions and 18 deletions

View File

@ -1,5 +1,5 @@
<script setup name="Auth"> <script setup name="Auth">
import { useAuth } from '@/util/composables' import { useAuth } from '@/utils/composables'
const props = defineProps({ const props = defineProps({
value: { value: {

View File

@ -1,5 +1,5 @@
<script setup name="AuthAll"> <script setup name="AuthAll">
import { useAuth } from '@/util/composables' import { useAuth } from '@/utils/composables'
const props = defineProps({ const props = defineProps({
value: { value: {

View File

@ -1,5 +1,5 @@
<script setup name="CascaderArea"> <script setup name="CascaderArea">
import area from '@/util/area' import area from '@/utils/area'
const props = defineProps({ const props = defineProps({
// ['', '', ''] // ['', '', '']

View File

@ -1,6 +1,6 @@
<script setup name="AppSetting"> <script setup name="AppSetting">
import { useClipboard } from '@vueuse/core' import { useClipboard } from '@vueuse/core'
import eventBus from '@/util/eventBus' import eventBus from '@/utils/eventBus'
import useSettingsStore from '@/store/modules/settings' import useSettingsStore from '@/store/modules/settings'
import useMenuStore from '@/store/modules/menu' import useMenuStore from '@/store/modules/menu'
import globalSettings from '@/settings' import globalSettings from '@/settings'

View File

@ -3,7 +3,7 @@ import Logo from '../Logo/index.vue'
import Tools from '../Tools/index.vue' import Tools from '../Tools/index.vue'
import useSettingsStore from '@/store/modules/settings' import useSettingsStore from '@/store/modules/settings'
import useMenuStore from '@/store/modules/menu' import useMenuStore from '@/store/modules/menu'
import { useMenu } from '@/util/composables' import { useMenu } from '@/utils/composables'
const settingsStore = useSettingsStore() const settingsStore = useSettingsStore()
const menuStore = useMenuStore() const menuStore = useMenuStore()

View File

@ -2,7 +2,7 @@
import Logo from '../Logo/index.vue' import Logo from '../Logo/index.vue'
import useSettingsStore from '@/store/modules/settings' import useSettingsStore from '@/store/modules/settings'
import useMenuStore from '@/store/modules/menu' import useMenuStore from '@/store/modules/menu'
import { useMenu } from '@/util/composables' import { useMenu } from '@/utils/composables'
const settingsStore = useSettingsStore() const settingsStore = useSettingsStore()
const menuStore = useMenuStore() const menuStore = useMenuStore()

View File

@ -1,7 +1,7 @@
<script setup name="Search"> <script setup name="Search">
import hotkeys from 'hotkeys-js' import hotkeys from 'hotkeys-js'
import { deepClone, isExternalLink } from '@/util' import { deepClone, isExternalLink } from '@/utils'
import eventBus from '@/util/eventBus' import eventBus from '@/utils/eventBus'
import useSettingsStore from '@/store/modules/settings' import useSettingsStore from '@/store/modules/settings'
import useRouteStore from '@/store/modules/route' import useRouteStore from '@/store/modules/route'
import useMenuStore from '@/store/modules/menu' import useMenuStore from '@/store/modules/menu'

View File

@ -1,6 +1,6 @@
<script setup name="SidebarItem"> <script setup name="SidebarItem">
import SidebarItem from './index.vue' import SidebarItem from './index.vue'
import { isExternalLink, resolveRoutePath } from '@/util' import { isExternalLink, resolveRoutePath } from '@/utils'
const props = defineProps({ const props = defineProps({
item: { item: {

View File

@ -1,7 +1,7 @@
<script setup name="Tools"> <script setup name="Tools">
import { useFullscreen } from '@vueuse/core' import { useFullscreen } from '@vueuse/core'
import eventBus from '@/util/eventBus' import eventBus from '@/utils/eventBus'
import { useMainPage } from '@/util/composables' import { useMainPage } from '@/utils/composables'
import useSettingsStore from '@/store/modules/settings' import useSettingsStore from '@/store/modules/settings'
import useUserStore from '@/store/modules/user' import useUserStore from '@/store/modules/user'

View File

@ -9,7 +9,7 @@ import AppSetting from './components/AppSetting/index.vue'
import BuyIt from './components/BuyIt/index.vue' import BuyIt from './components/BuyIt/index.vue'
import useSettingsStore from '@/store/modules/settings' import useSettingsStore from '@/store/modules/settings'
import useKeepAliveStore from '@/store/modules/keepAlive' import useKeepAliveStore from '@/store/modules/keepAlive'
import { useMainPage } from '@/util/composables' import { useMainPage } from '@/utils/composables'
const routeInfo = useRoute() const routeInfo = useRoute()

View File

@ -11,7 +11,7 @@ app.use(router)
/* importElementPlusPlaceholder */ /* importElementPlusPlaceholder */
// 自定义指令 // 自定义指令
import directive from '@/util/directive' import directive from '@/utils/directive'
directive(app) directive(app)
// 加载 svg 图标 // 加载 svg 图标

View File

@ -1,4 +1,4 @@
import { deepClone, resolveRoutePath } from '@/util' import { deepClone, resolveRoutePath } from '@/utils'
import path from 'path-browserify' import path from 'path-browserify'
import api from '@/api' import api from '@/api'
import menu from '@/menu' import menu from '@/menu'

View File

@ -1,4 +1,4 @@
import { deepClone, resolveRoutePath } from '@/util' import { deepClone, resolveRoutePath } from '@/utils'
import api from '@/api' import api from '@/api'
import { systemRoutes } from '@/router/routes' import { systemRoutes } from '@/router/routes'

View File

@ -1,7 +1,7 @@
import router from '@/router' import router from '@/router'
import useSettingsStore from '@/store/modules/settings' import useSettingsStore from '@/store/modules/settings'
import useMenuStore from '@/store/modules/menu' import useMenuStore from '@/store/modules/menu'
import { isExternalLink } from '@/util' import { isExternalLink } from '@/utils'
export default function useMenu() { export default function useMenu() {
const settingsStore = useSettingsStore() const settingsStore = useSettingsStore()

View File

@ -1,4 +1,4 @@
import { useAuth } from '@/util/composables' import { useAuth } from '@/utils/composables'
export default function directive(app) { export default function directive(app) {
// 注册 v-auth 和 v-auth-all 指令 // 注册 v-auth 和 v-auth-all 指令

View File

@ -9,7 +9,7 @@
<script setup> <script setup>
import useSettingsStore from '@/store/modules/settings' import useSettingsStore from '@/store/modules/settings'
import useUserStore from '@/store/modules/user' import useUserStore from '@/store/modules/user'
import { useAuth } from '@/util/composables' import { useAuth } from '@/utils/composables'
const settingsStore = useSettingsStore() const settingsStore = useSettingsStore()
const userStore = useUserStore() const userStore = useUserStore()