chore: 迁移原有文件并修改路径指向

This commit is contained in:
悠静萝莉 2022-06-22 19:29:19 +08:00
parent 8eed2601db
commit b95de96257
No known key found for this signature in database
GPG Key ID: 4EDF1CA1CEA8EBCC
16 changed files with 25 additions and 17 deletions

View File

@ -70,7 +70,7 @@ import { useSettingStore } from '@/store';
import { getActive } from '@/router';
import { prefix } from '@/config/global';
import LogoFull from '@/assets/assets-logo-full.svg?component';
import { MenuRoute } from '@/interface';
import { MenuRoute } from '#/interface';
import Notice from './Notice.vue';
import Search from './Search.vue';

View File

@ -1,6 +1,6 @@
import { defineComponent, PropType, computed, h } from 'vue';
import { prefix } from '@/config/global';
import { MenuRoute } from '@/interface';
import { MenuRoute } from '#/interface';
import { getActive } from '@/router';
const getMenuList = (list: MenuRoute[], basePath?: string): MenuRoute[] => {

View File

@ -49,7 +49,7 @@
import { useRouter } from 'vue-router';
import { storeToRefs } from 'pinia';
import { useNotificationStore } from '@/store';
import { NotificationItem } from '@/interface';
import { NotificationItem } from '#/interface';
const router = useRouter();
const store = useNotificationStore();

View File

@ -11,7 +11,7 @@ import LayoutContent from './components/Content.vue';
import Setting from './setting.vue';
import { prefix } from '@/config/global';
import { TRouterInfo } from '@/interface';
import { TRouterInfo } from '#/interface';
import '@/style/layout.less';

View File

@ -121,7 +121,7 @@ import { ref, onMounted } from 'vue';
import { prefix } from '@/config/global';
import { BASE_INFO_DATA, TABLE_COLUMNS_DATA as columns, PRODUCT_LIST } from './constants';
import request from '@/utils/request';
import { ResDataType } from '@/interface';
import { ResDataType } from '#/interface';
import Product from './components/Product.vue';

View File

@ -89,7 +89,7 @@ import { BASE_INFO_DATA, TABLE_COLUMNS as columns } from './constants';
import { changeChartsTheme } from '@/utils/color';
import { prefix } from '@/config/global';
import { ResDataType } from '@/interface';
import { ResDataType } from '#/interface';
import request from '@/utils/request';
echarts.use([

View File

@ -60,7 +60,7 @@ export default {
import { ref, computed } from 'vue';
import { storeToRefs } from 'pinia';
import { NOTIFICATION_TYPES } from '@/constants';
import { NotificationItem } from '@/interface';
import { NotificationItem } from '#/interface';
import EmptyIcon from '@/assets/assets-empty.svg?component';
import { useNotificationStore } from '@/store';

View File

@ -82,7 +82,7 @@ import { MessagePlugin } from 'tdesign-vue-next';
import { CONTRACT_STATUS, CONTRACT_TYPES, CONTRACT_PAYMENT_TYPES } from '@/constants';
import Trend from '@/components/trend/index.vue';
import { ResDataType } from '@/interface';
import { ResDataType } from '#/interface';
import request from '@/utils/request';
import { useSettingStore } from '@/store';

View File

@ -74,7 +74,7 @@ import { MessagePlugin } from 'tdesign-vue-next';
import ProductCard from '@/components/product-card/index.vue';
import DialogForm from './components/DialogForm.vue';
import request from '@/utils/request';
import { ResDataType } from '@/interface';
import { ResDataType } from '#/interface';
const INITIAL_DATA = {
name: '',

View File

@ -118,7 +118,7 @@ import { ref, computed, onMounted } from 'vue';
import { MessagePlugin } from 'tdesign-vue-next';
import Trend from '@/components/trend/index.vue';
import request from '@/utils/request';
import { ResDataType } from '@/interface';
import { ResDataType } from '#/interface';
import { useSettingStore } from '@/store';
import {

View File

@ -1,5 +1,5 @@
import { defineStore } from 'pinia';
import { NotificationItem } from '@/interface';
import { NotificationItem } from '#/interface';
const msgData = [
{

View File

@ -1,5 +1,5 @@
import { defineStore } from 'pinia';
import { TRouterInfo, TTabRouterType } from '@/interface';
import { TRouterInfo, TTabRouterType } from '#/interface';
import { store } from '@/store';
const homeRoute: Array<TRouterInfo> = [

View File

@ -29,7 +29,7 @@ export function getDateArray(dateTime: string[] = [], divideNum = 10): string[]
*
* @memberOf DashboardBase
*/
export function getRandomArray(num = 100) {
export function getRandomArray(num = 100): number {
let resultNum = Number((Math.random() * num).toFixed(0));
if (resultNum <= 1) {

View File

@ -10,11 +10,11 @@ import { getSettingStore } from '@/store';
* @param {string} theme
* @returns {}
*/
export function getColorFromTheme(theme: string) {
export function getColorFromTheme(theme: string): Array<string> {
const settingStore = getSettingStore();
const { colorList, mode } = settingStore;
const isDarkMode = mode === 'dark';
let themeColorList = [];
let themeColorList;
const themeColor = getBrandColor(theme, colorList);
if (!/^#[A-F\d]{6}$/i.test(theme)) {
@ -52,7 +52,7 @@ export function getChartListColor(): Array<string> {
* @param {Array<string>} chartsList
* @param {string} theme
*/
export function changeChartsTheme(chartsList: echarts.EChartsType[]) {
export function changeChartsTheme(chartsList: echarts.EChartsType[]): void {
if (chartsList && chartsList.length) {
const chartChangeColor = getChartListColor();

View File

@ -1,11 +1,19 @@
// 通用声明
// Vue
declare module '*.vue' {
import { DefineComponent } from 'vue';
const component: DefineComponent<{}, {}, any>;
export default component;
}
declare type ClassName = { [className: string]: any } | ClassName[] | string;
declare interface ImportMeta {
env: {
MODE: 'mock' | 'development' | 'test' | 'release';
};
// eslint-disable-next-line no-unused-vars
glob: (url: string) => { url };
}