mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-08 12:57:11 +08:00
refactor(apis): 将 common 目录下的 common.ts 文件移动到 system 目录下
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
export * from './common'
|
||||
export * from './captcha'
|
||||
export * from './dashboard'
|
||||
|
@@ -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 }) {
|
@@ -1,3 +1,4 @@
|
||||
export * from './common'
|
||||
export * from './user'
|
||||
export * from './role'
|
||||
export * from './menu'
|
||||
|
@@ -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 }) {
|
||||
|
@@ -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>>()
|
||||
|
@@ -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'
|
||||
|
||||
/** 菜单模块 */
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { ref } from 'vue'
|
||||
import { listRoleDict } from '@/apis'
|
||||
import { listRoleDict } from '@/apis/system'
|
||||
import type { LabelValueState } from '@/types/global'
|
||||
|
||||
/** 角色模块 */
|
||||
|
@@ -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 = () => {
|
||||
|
@@ -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'
|
||||
|
Reference in New Issue
Block a user