mirror of
https://github.com/un-pany/v3-admin-vite.git
synced 2025-04-20 10:59:21 +08:00
refactor: 将 apis 目录剥离到 common 目录下
This commit is contained in:
parent
5a94ec4c3b
commit
d0cfcead4a
@ -1,5 +1,5 @@
|
||||
import type * as Table from "./type"
|
||||
import { request } from "@/http/request"
|
||||
import { request } from "@/http/axios"
|
||||
|
||||
/** 增 */
|
||||
export function createTableDataApi(data: Table.CreateOrUpdateTableRequestData) {
|
@ -1,5 +1,5 @@
|
||||
import type * as Login from "./type"
|
||||
import { request } from "@/http/request"
|
||||
import { request } from "@/http/axios"
|
||||
|
||||
/** 获取当前登陆用户详情 */
|
||||
export function getUserInfoApi() {
|
@ -1,7 +1,7 @@
|
||||
<script lang="ts" setup>
|
||||
import type { CreateOrUpdateTableRequestData, TableData } from "@/http/apis/table/type"
|
||||
import type { CreateOrUpdateTableRequestData, TableData } from "@@/apis/table/type"
|
||||
import type { FormInstance, FormRules } from "element-plus"
|
||||
import { createTableDataApi, deleteTableDataApi, getTableDataApi, updateTableDataApi } from "@/http/apis/table"
|
||||
import { createTableDataApi, deleteTableDataApi, getTableDataApi, updateTableDataApi } from "@@/apis/table"
|
||||
import { usePagination } from "@@/composables/usePagination"
|
||||
import { CirclePlus, Delete, Download, Refresh, RefreshRight, Search } from "@element-plus/icons-vue"
|
||||
import { ElMessage, ElMessageBox } from "element-plus"
|
||||
|
@ -1,8 +1,8 @@
|
||||
<script lang="ts" setup>
|
||||
import type { TableResponseData } from "@/http/apis/table/type"
|
||||
import type { TableResponseData } from "@@/apis/table/type"
|
||||
import type { ElMessageBoxOptions } from "element-plus"
|
||||
import type { VxeFormInstance, VxeFormProps, VxeGridInstance, VxeGridProps, VxeModalInstance, VxeModalProps } from "vxe-table"
|
||||
import { deleteTableDataApi, getTableDataApi } from "@/http/apis/table"
|
||||
import { deleteTableDataApi, getTableDataApi } from "@@/apis/table"
|
||||
import { ElMessage, ElMessageBox } from "element-plus"
|
||||
import { nextTick, reactive, ref } from "vue"
|
||||
import { RoleColumnSolts } from "./tsx/RoleColumnSolts"
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type * as Login from "./type"
|
||||
import { request } from "@/http/request"
|
||||
import { request } from "@/http/axios"
|
||||
|
||||
/** 获取登录验证码 */
|
||||
export function getLoginCodeApi() {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { getUserInfoApi } from "@/http/apis/user"
|
||||
import { pinia } from "@/pinia"
|
||||
import { resetRouter } from "@/router"
|
||||
import { routerConfig } from "@/router/config"
|
||||
import { getUserInfoApi } from "@@/apis/user"
|
||||
import { setToken as _setToken, getToken, removeToken } from "@@/utils/cache/cookies"
|
||||
import { defineStore } from "pinia"
|
||||
import { ref } from "vue"
|
||||
|
Loading…
x
Reference in New Issue
Block a user