修改前端导入规范.

This commit is contained in:
lijiahang
2023-10-25 10:26:14 +08:00
parent eb2c8eb719
commit d3825ab5b2
125 changed files with 277 additions and 231 deletions

View File

@@ -1,5 +1,5 @@
import type { EChartsOption } from 'echarts';
import { computed } from 'vue';
import { EChartsOption } from 'echarts';
import { useAppStore } from '@/store';
// for code hints

View File

@@ -1,5 +1,6 @@
import type { FavoriteType } from '@/api/meta/favorite';
import { Message } from '@arco-design/web-vue';
import { FavoriteType, addFavorite, cancelFavorite } from '@/api/meta/favorite';
import { addFavorite, cancelFavorite } from '@/api/meta/favorite';
export default function useFavorite(type: FavoriteType) {
const toggle = async (record: any, id: number, cancelField = 'favorite') => {

View File

@@ -1,4 +1,4 @@
import { RouteLocationNormalized, RouteRecordNormalized, RouteRecordRaw } from 'vue-router';
import type { RouteLocationNormalized, RouteRecordNormalized, RouteRecordRaw } from 'vue-router';
import { useMenuStore, useUserStore } from '@/store';
import { STATUS_ROUTER_LIST, WHITE_ROUTER_LIST } from '@/router/constants';

View File

@@ -1,6 +1,7 @@
import { ref, UnwrapRef } from 'vue';
import { AxiosResponse } from 'axios';
import { HttpResponse } from '@/api/interceptor';
import type { AxiosResponse } from 'axios';
import type { HttpResponse } from '@/api/interceptor';
import type { UnwrapRef } from 'vue';
import { ref } from 'vue';
import useLoading from './loading';
export default function useRequest<T>(