diff --git a/README.md b/README.md index daf42d6..c519f0e 100755 --- a/README.md +++ b/README.md @@ -13,9 +13,6 @@ - - -
diff --git a/package.json b/package.json index 437d00b..27a7b39 100755 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "@types/react-router-dom": "^5.1.5", "@typescript-eslint/eslint-plugin": "^2.10.0", "@typescript-eslint/parser": "^3.6.1", - "antd": "^4.6.5", + "antd": "^4.6.6", "axios": "^0.20.0", "babel-eslint": "10.1.0", "babel-jest": "^24.9.0", diff --git a/src/assets/styles/style.scss b/src/assets/styles/style.scss index 0405a77..8710bfe 100755 --- a/src/assets/styles/style.scss +++ b/src/assets/styles/style.scss @@ -1,59 +1,5 @@ @charset "utf-8"; -* { - margin: 0; - padding: 0; -} - -body { - -webkit-font-smoothing: antialiased; - overflow-x: hidden; -} - -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -menu, -nav, -section { - display: block; -} - -h1 { - font-size: 18px; -} - -h2 { - font-size: 16px; -} - -h3 { - font-size: 14px; -} - -h4, -h5, -h6 { - font-size: 100%; -} - -address, -cite, -dfn, -em, -var { - font-style: normal; -} - -small { - font-size: 12px; -} - ol, ul, li { @@ -69,86 +15,6 @@ pre { word-break: break-all; } -abbr[title], -acronym[title] { - border-bottom: 1px dotted; - cursor: help; -} - -q:after, -q:before { - content: ''; -} - -legend { - color: #000; -} - -fieldset, -img, -iframe { - border: none; -} - -button, -input, -select, -textarea { - font-size: 100%; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} - -input[type="text"], -input[type="password"], -input[type="submit"], -input[type="reset"], -input[type="tel"], -button { - -webkit-appearance: none; - outline: none; - border: 1px solid #e1e1e1; -} - -input::-webkit-outer-spin-button, -input::-webkit-inner-spin-button { - -webkit-appearance: none; /* 移除number类型样式 */ -} - -textarea { - resize: none; - outline: none; - -webkit-appearance: none; -} - -button, -input[type="submit"], -input[type="reset"] { - cursor: pointer; - outline:none; -} - -i, em { font-style: normal; } -// 禁用系统默认菜单 -a, -img { - -webkit-touch-callout: none; -} - -img { - max-width: 100%; -} - -input, -textarea { - - &::-webkit-input-placeholder{ - color:#999; - } -} diff --git a/src/services/capitalFlow.ts b/src/services/capitalFlow.ts index 398e8aa..68b35aa 100755 --- a/src/services/capitalFlow.ts +++ b/src/services/capitalFlow.ts @@ -3,9 +3,7 @@ import api from '@/api'; // 类型 export function serviceGetCapitalFlowType() { - return http.get(api.capitalFlowType, { - headers: { isLoading: true } - }); + return http.get(api.capitalFlowType); } export function serviceDeleteCapitalFlowType(id: string) { diff --git a/src/services/memorandum.ts b/src/services/memorandum.ts index ae12a3d..1073371 100755 --- a/src/services/memorandum.ts +++ b/src/services/memorandum.ts @@ -11,16 +11,13 @@ export function serviceCreateMemorandum(data: object) { // 查询所有 export function serviceGetMemorandum(params?: object) { return http.get(api.memorandum, { - params, - headers: { isLoading: true } + params }); } // 通过id查询 export function serviceGetMemorandumById(id: unknown) { - return http.get(`${api.memorandum}/${id}`, { - headers: { isLoading: true } - }); + return http.get(`${api.memorandum}/${id}`); } // 删除 diff --git a/src/services/todayTask.ts b/src/services/todayTask.ts index 1464094..9387e3c 100755 --- a/src/services/todayTask.ts +++ b/src/services/todayTask.ts @@ -10,10 +10,7 @@ export function serviceCreateTask(data: object) { // 查询 export function serviceGetTask(params?: object) { - return http.get(api.todayTask, { - params, - headers: { isLoading: true } - }); + return http.get(api.todayTask, { params }); } // 删除 diff --git a/src/utils/http.ts b/src/utils/http.ts index 55fbf50..d309331 100755 --- a/src/utils/http.ts +++ b/src/utils/http.ts @@ -3,7 +3,6 @@ import CONFIG from '@/config'; import store from '@/store'; import { message } from 'antd'; import { logout } from '@/store/actions'; -import { spin } from '@/utils'; let exiting = false; const CancelToken = axios.CancelToken; @@ -57,10 +56,6 @@ httpInstance.interceptors.request.use(function (config) { const data: { [k: string]: any } = {}; - if (config.headers.isLoading) { - spin.start(); - } - if (method === 'post' || method === 'put') { if (config.data instanceof FormData) { for (let key in data) { @@ -79,9 +74,6 @@ httpInstance.interceptors.request.use(function (config) { httpInstance.interceptors.response.use(function (res) { const headers = res.config.headers; - if (headers.isLoading) { - spin.done(); - } if (!res.data.success && headers.errorAlert) { message.warn(res.data.msg ?? '服务器出小差'); diff --git a/src/utils/index.ts b/src/utils/index.ts index 26f82ed..cd85a50 100755 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,3 +1,2 @@ export * from './helper'; export * from './date'; -export * from './spin'; diff --git a/src/utils/spin.ts b/src/utils/spin.ts deleted file mode 100755 index b998e15..0000000 --- a/src/utils/spin.ts +++ /dev/null @@ -1,27 +0,0 @@ - -const spinHTML = '