mirror of
https://gitee.com/fantastic-admin/basic.git
synced 2024-12-05 13:37:45 +08:00
调整目录结构
This commit is contained in:
parent
80182c54c3
commit
421a8e0612
@ -1,5 +1,5 @@
|
||||
<script setup name="Auth">
|
||||
import { useAuth } from '@/util/composables'
|
||||
import { useAuth } from '@/utils/composables'
|
||||
|
||||
const props = defineProps({
|
||||
value: {
|
||||
|
@ -1,5 +1,5 @@
|
||||
<script setup name="AuthAll">
|
||||
import { useAuth } from '@/util/composables'
|
||||
import { useAuth } from '@/utils/composables'
|
||||
|
||||
const props = defineProps({
|
||||
value: {
|
||||
|
@ -1,5 +1,5 @@
|
||||
<script setup name="CascaderArea">
|
||||
import area from '@/util/area'
|
||||
import area from '@/utils/area'
|
||||
|
||||
const props = defineProps({
|
||||
// 传入数据为中文数组,例如:['河北省', '唐山市', '市辖区']
|
||||
|
@ -1,6 +1,6 @@
|
||||
<script setup name="AppSetting">
|
||||
import { useClipboard } from '@vueuse/core'
|
||||
import eventBus from '@/util/eventBus'
|
||||
import eventBus from '@/utils/eventBus'
|
||||
import useSettingsStore from '@/store/modules/settings'
|
||||
import useMenuStore from '@/store/modules/menu'
|
||||
import globalSettings from '@/settings'
|
||||
|
@ -3,7 +3,7 @@ import Logo from '../Logo/index.vue'
|
||||
import Tools from '../Tools/index.vue'
|
||||
import useSettingsStore from '@/store/modules/settings'
|
||||
import useMenuStore from '@/store/modules/menu'
|
||||
import { useMenu } from '@/util/composables'
|
||||
import { useMenu } from '@/utils/composables'
|
||||
|
||||
const settingsStore = useSettingsStore()
|
||||
const menuStore = useMenuStore()
|
||||
|
@ -2,7 +2,7 @@
|
||||
import Logo from '../Logo/index.vue'
|
||||
import useSettingsStore from '@/store/modules/settings'
|
||||
import useMenuStore from '@/store/modules/menu'
|
||||
import { useMenu } from '@/util/composables'
|
||||
import { useMenu } from '@/utils/composables'
|
||||
|
||||
const settingsStore = useSettingsStore()
|
||||
const menuStore = useMenuStore()
|
||||
|
@ -1,7 +1,7 @@
|
||||
<script setup name="Search">
|
||||
import hotkeys from 'hotkeys-js'
|
||||
import { deepClone, isExternalLink } from '@/util'
|
||||
import eventBus from '@/util/eventBus'
|
||||
import { deepClone, isExternalLink } from '@/utils'
|
||||
import eventBus from '@/utils/eventBus'
|
||||
import useSettingsStore from '@/store/modules/settings'
|
||||
import useRouteStore from '@/store/modules/route'
|
||||
import useMenuStore from '@/store/modules/menu'
|
||||
|
@ -1,6 +1,6 @@
|
||||
<script setup name="SidebarItem">
|
||||
import SidebarItem from './index.vue'
|
||||
import { isExternalLink, resolveRoutePath } from '@/util'
|
||||
import { isExternalLink, resolveRoutePath } from '@/utils'
|
||||
|
||||
const props = defineProps({
|
||||
item: {
|
||||
|
@ -1,7 +1,7 @@
|
||||
<script setup name="Tools">
|
||||
import { useFullscreen } from '@vueuse/core'
|
||||
import eventBus from '@/util/eventBus'
|
||||
import { useMainPage } from '@/util/composables'
|
||||
import eventBus from '@/utils/eventBus'
|
||||
import { useMainPage } from '@/utils/composables'
|
||||
import useSettingsStore from '@/store/modules/settings'
|
||||
import useUserStore from '@/store/modules/user'
|
||||
|
||||
|
@ -9,7 +9,7 @@ import AppSetting from './components/AppSetting/index.vue'
|
||||
import BuyIt from './components/BuyIt/index.vue'
|
||||
import useSettingsStore from '@/store/modules/settings'
|
||||
import useKeepAliveStore from '@/store/modules/keepAlive'
|
||||
import { useMainPage } from '@/util/composables'
|
||||
import { useMainPage } from '@/utils/composables'
|
||||
|
||||
const routeInfo = useRoute()
|
||||
|
||||
|
@ -11,7 +11,7 @@ app.use(router)
|
||||
/* importElementPlusPlaceholder */
|
||||
|
||||
// 自定义指令
|
||||
import directive from '@/util/directive'
|
||||
import directive from '@/utils/directive'
|
||||
directive(app)
|
||||
|
||||
// 加载 svg 图标
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { deepClone, resolveRoutePath } from '@/util'
|
||||
import { deepClone, resolveRoutePath } from '@/utils'
|
||||
import path from 'path-browserify'
|
||||
import api from '@/api'
|
||||
import menu from '@/menu'
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { deepClone, resolveRoutePath } from '@/util'
|
||||
import { deepClone, resolveRoutePath } from '@/utils'
|
||||
import api from '@/api'
|
||||
import { systemRoutes } from '@/router/routes'
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import router from '@/router'
|
||||
import useSettingsStore from '@/store/modules/settings'
|
||||
import useMenuStore from '@/store/modules/menu'
|
||||
import { isExternalLink } from '@/util'
|
||||
import { isExternalLink } from '@/utils'
|
||||
|
||||
export default function useMenu() {
|
||||
const settingsStore = useSettingsStore()
|
@ -1,4 +1,4 @@
|
||||
import { useAuth } from '@/util/composables'
|
||||
import { useAuth } from '@/utils/composables'
|
||||
|
||||
export default function directive(app) {
|
||||
// 注册 v-auth 和 v-auth-all 指令
|
@ -9,7 +9,7 @@
|
||||
<script setup>
|
||||
import useSettingsStore from '@/store/modules/settings'
|
||||
import useUserStore from '@/store/modules/user'
|
||||
import { useAuth } from '@/util/composables'
|
||||
import { useAuth } from '@/utils/composables'
|
||||
|
||||
const settingsStore = useSettingsStore()
|
||||
const userStore = useUserStore()
|
||||
|
Loading…
Reference in New Issue
Block a user