mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-12 18:57:10 +08:00
chore: 优化 apis 导入,随着模块和接口的增加,方便维护
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import dayjs from 'dayjs'
|
||||
import { type LogQuery, exportLoginLog, listLog } from '@/apis'
|
||||
import { type LogQuery, exportLoginLog, listLog } from '@/apis/monitor'
|
||||
import type { TableInstanceColumns } from '@/components/GiTable/type'
|
||||
import DateRangePicker from '@/components/DateRangePicker/index.vue'
|
||||
import { useDownload, useTable } from '@/hooks'
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { type LogDetailResp, getLog } from '@/apis'
|
||||
import { type LogDetailResp, getLog } from '@/apis/monitor'
|
||||
|
||||
const dataId = ref('')
|
||||
const dataDetail = ref<LogDetailResp>()
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
<script setup lang="ts">
|
||||
import dayjs from 'dayjs'
|
||||
import OperationLogDetailDrawer from './OperationLogDetailDrawer.vue'
|
||||
import { type LogQuery, type LogResp, exportOperationLog, listLog } from '@/apis'
|
||||
import { type LogQuery, type LogResp, exportOperationLog, listLog } from '@/apis/monitor'
|
||||
import type { TableInstanceColumns } from '@/components/GiTable/type'
|
||||
import DateRangePicker from '@/components/DateRangePicker/index.vue'
|
||||
import { useDownload, useTable } from '@/hooks'
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Message } from '@arco-design/web-vue'
|
||||
import { type OnlineUserQuery, kickout, listOnlineUser } from '@/apis'
|
||||
import { type OnlineUserQuery, kickout, listOnlineUser } from '@/apis/monitor'
|
||||
import type { TableInstanceColumns } from '@/components/GiTable/type'
|
||||
import DateRangePicker from '@/components/DateRangePicker/index.vue'
|
||||
import { useUserStore } from '@/stores'
|
||||
|
||||
Reference in New Issue
Block a user