From a5d19797de8a0d5fdbe04bea7cc7a39e59694479 Mon Sep 17 00:00:00 2001 From: Shuai Chen Date: Tue, 25 Dec 2018 22:33:25 +0800 Subject: [PATCH] delete redundant targets --- config/config.js | 11 ++++------- src/components/Login/LoginTab.d.ts | 7 +++++++ 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 src/components/Login/LoginTab.d.ts diff --git a/config/config.js b/config/config.js index 8b56d031..a7b96905 100644 --- a/config/config.js +++ b/config/config.js @@ -13,9 +13,6 @@ const plugins = [ dva: { hmr: true, }, - targets: { - ie: 11, - }, locale: { enable: true, // default false default: 'zh-CN', // default zh-CN @@ -57,12 +54,12 @@ if (process.env.APP_TYPE === 'site') { export default { // add for transfer to umi plugins, - targets: { - ie: 11, - }, define: { APP_TYPE: process.env.APP_TYPE || '', }, + targets: { + ie: 11, + }, // 路由配置 routes: pageRoutes, // Theme for antd @@ -97,7 +94,7 @@ export default { } const match = context.resourcePath.match(/src(.*)/); if (match && match[1]) { - const antdProPath = match[1].replace('.less', ''); + const antdProPath = match[1].replace('.less', ''); const arr = slash(antdProPath) .split('/') .map(a => a.replace(/([A-Z])/g, '-$1')) diff --git a/src/components/Login/LoginTab.d.ts b/src/components/Login/LoginTab.d.ts new file mode 100644 index 00000000..db651f7b --- /dev/null +++ b/src/components/Login/LoginTab.d.ts @@ -0,0 +1,7 @@ +import * as React from 'react'; + +export interface ILoginTabProps { + key?: string; + tab?: React.ReactNode; +} +export default class LoginTab extends React.Component {} -- GitLab