refactor(apis): 将 common 目录下的 common.ts 文件移动到 system 目录下

This commit is contained in:
2025-07-17 23:42:42 +08:00
parent 87bcf33940
commit 60c6df2574
9 changed files with 8 additions and 8 deletions

View File

@@ -1,3 +1,2 @@
export * from './common'
export * from './captcha'
export * from './dashboard'

View File

@@ -2,7 +2,7 @@ import type { TreeNodeData } from '@arco-design/web-vue'
import http from '@/utils/http'
import type { LabelValueState } from '@/types/global'
const BASE_URL = '/common'
const BASE_URL = '/system/common'
/** @desc 查询部门树 */
export function listDeptTree(query: { description: string | unknown }) {

View File

@@ -1,3 +1,4 @@
export * from './common'
export * from './user'
export * from './role'
export * from './menu'

View File

@@ -1,6 +1,6 @@
import { ref } from 'vue'
import type { TreeNodeData } from '@arco-design/web-vue'
import { listDeptTree } from '@/apis'
import { listDeptTree } from '@/apis/system'
/** 部门模块 */
export function useDept(options?: { onSuccess?: () => void }) {

View File

@@ -1,5 +1,5 @@
import { ref, toRefs } from 'vue'
import { listCommonDict } from '@/apis'
import { listCommonDict } from '@/apis/system'
import { useDictStore } from '@/stores'
const pendingRequests = new Map<string, Promise<any>>()

View File

@@ -1,6 +1,6 @@
import { ref } from 'vue'
import type { TreeNodeData } from '@arco-design/web-vue'
import { listMenuTree } from '@/apis'
import { listMenuTree } from '@/apis/system'
import { listTenantPackageMenu } from '@/apis/tenant/package'
/** 菜单模块 */

View File

@@ -1,5 +1,5 @@
import { ref } from 'vue'
import { listRoleDict } from '@/apis'
import { listRoleDict } from '@/apis/system'
import type { LabelValueState } from '@/types/global'
/** 角色模块 */

View File

@@ -1,7 +1,7 @@
import { defineStore } from 'pinia'
import { computed, reactive, toRefs } from 'vue'
import { generate, getRgbStr } from '@arco-design/color'
import { type BasicConfig, listSiteOptionDict } from '@/apis'
import { type BasicConfig, listSiteOptionDict } from '@/apis/system'
import { getSettings } from '@/config/setting'
const storeSetup = () => {

View File

@@ -75,7 +75,7 @@ import { Message } from '@arco-design/web-vue'
import { useWindowSize } from '@vueuse/core'
import AiEditor from './components/index.vue'
import { addNotice, getNotice, updateNotice } from '@/apis/system/notice'
import { listUserDict } from '@/apis'
import { listUserDict } from '@/apis/system'
import { type ColumnItem, GiForm } from '@/components/GiForm'
import type { LabelValueState } from '@/types/global'
import { useTabsStore } from '@/stores'