* fix import bug * fix import bug
This commit is contained in:
parent
fb8255c8b7
commit
1c97d715eb
@ -563,5 +563,6 @@ export {
|
||||
getParams,
|
||||
setParam,
|
||||
setParams,
|
||||
goLogin,
|
||||
request,
|
||||
};
|
||||
|
@ -43,13 +43,14 @@ import ShowCodeing from 'components/ShowCodeing';
|
||||
import DeleteDialog from 'components/DeleteDialog';
|
||||
import DashboardCard from './DashboardCard';
|
||||
import { getParams, setParams, request } from '@/globalLib';
|
||||
import { goLogin } from '../../../globalLib';
|
||||
import { connect } from 'react-redux';
|
||||
import { getConfigs, getConfigsV2 } from '../../../reducers/configuration';
|
||||
import PageTitle from '../../../components/PageTitle';
|
||||
import QueryResult from '../../../components/QueryResult';
|
||||
|
||||
import './index.scss';
|
||||
import { LANGUAGE_KEY, GLOBAL_PAGE_SIZE_LIST } from '../../../constants';
|
||||
import { LANGUAGE_KEY, GLOBAL_PAGE_SIZE_LIST, LOGINPAGE_ENABLED } from '../../../constants';
|
||||
|
||||
const { Item } = MenuButton;
|
||||
const { Panel } = Collapse;
|
||||
@ -1013,12 +1014,22 @@ class ConfigurationManagement extends React.Component {
|
||||
const { locale = {} } = this.props;
|
||||
const self = this;
|
||||
self.field.setValue('sameConfigPolicy', 'ABORT');
|
||||
|
||||
const _LOGINPAGE_ENABLED = localStorage.getItem(LOGINPAGE_ENABLED);
|
||||
let token = {};
|
||||
|
||||
if (_LOGINPAGE_ENABLED !== 'false') {
|
||||
try {
|
||||
token = JSON.parse(localStorage.token);
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
goLogin();
|
||||
Dialog.alert({
|
||||
title: locale.importFail,
|
||||
content: locale.authFail,
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
const { accessToken = '', username = '' } = token;
|
||||
const uploadProps = {
|
||||
|
@ -35,7 +35,7 @@
|
||||
<link rel="stylesheet" type="text/css" href="console-ui/public/css/icon.css">
|
||||
<link rel="stylesheet" type="text/css" href="console-ui/public/css/font-awesome.css">
|
||||
<!-- 第三方css结束 -->
|
||||
<link href="./css/main.css?6279658183dab105bcb6" rel="stylesheet"></head>
|
||||
<link href="./css/main.css?711c34427bb0227d8941" rel="stylesheet"></head>
|
||||
|
||||
<body>
|
||||
<div id="root" style="overflow:hidden"></div>
|
||||
@ -56,6 +56,6 @@
|
||||
<script src="console-ui/public/js/merge.js"></script>
|
||||
<script src="console-ui/public/js/loader.js"></script>
|
||||
<!-- 第三方js结束 -->
|
||||
<script type="text/javascript" src="./js/main.js?6279658183dab105bcb6"></script></body>
|
||||
<script type="text/javascript" src="./js/main.js?711c34427bb0227d8941"></script></body>
|
||||
|
||||
</html>
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user