feat(projects): 细节完善

This commit is contained in:
Soybean
2022-01-19 00:36:53 +08:00
parent 579e07400e
commit cc290accc2
6 changed files with 236 additions and 206 deletions

View File

@ -1,8 +1,8 @@
<template>
<div class="mb-6px px-4px cursor-pointer" @mouseenter="setTrue" @mouseleave="setFalse">
<div
class="flex-center flex-col py-12px rounded-2px"
:class="{ 'text-primary bg-primary-active': isActive, 'text-primary': isHover }"
class="flex-center flex-col py-12px rounded-2px bg-transparent transition-colors duration-300 ease-in-out"
:class="{ 'text-primary !bg-primary-active': isActive, 'text-primary': isHover }"
>
<component :is="icon" :class="[isMini ? 'text-16px' : 'text-20px']" />
<p

View File

@ -39,7 +39,7 @@ export default class CustomAxiosInstance {
const handleConfig = { ...config };
if (handleConfig.headers) {
// 数据转换
const contentType = handleConfig.headers['Content-Type'];
const contentType = handleConfig.headers['Content-Type'] as string;
handleConfig.data = await transformRequestData(handleConfig.data, contentType);
// 设置token
handleConfig.headers.Authorization = getToken();

View File

@ -3,24 +3,28 @@ import type { ThemeSetting } from '@/interface';
const themeColorList = [
'#1890ff',
'#009688',
'#536dfe',
'#409EFF',
'#ff5c93',
'#0960bd',
'#ee4f12',
'#007AFF',
'#2d8cf0',
'#409EFF',
'#536dfe',
'#5856D6',
'#0096c7',
'#9c27b0',
'#ff9800',
'#FF3D68',
'#00C1D4',
'#009688',
'#5AC8FA',
'#34C759',
'#71EFA3',
'#171010',
'#78DEC7',
'#1768AC',
'#FC5404',
'#ee4f12',
'#FF9500',
'#fadb14',
'#FC5404'
'#FFCC00',
'#FF3B30',
'#FF2D55',
'#ff5c93',
'#9c27b0',
'#AF52DE'
];
const defaultThemeSetting: ThemeSetting = {