Files
KnowStreaming/km-console/packages/layout-clusters-fe/src/index.tsx
2022-08-18 17:04:05 +08:00

36 lines
944 B
TypeScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import React from 'react';
import ReactDOM from 'react-dom';
import App from './app';
import './style-addition.less';
// function invalidModal(downloadBrowserUrl?: string) {
// Modal.warning({
// title: '浏览器版本过低',
// content: (
// <div>
// 正在使用的浏览器版本过低将不能正常浏览本平台。为了保证更好的使用体验请升级至Chrome 70以上版本。
// {
// downloadBrowserUrl
// ? <div>
// <a href={downloadBrowserUrl}>下载最新版本</a>
// </div> : null
// }
// </div>
// ),
// });
// }
// if (!isValidBrowser) {
// fetch(api.downloadBrowser).then((res) => {
// return res.json();
// }).then((res) => {
// invalidModal(res.dat);
// }).catch((e) => {
// console.log(e);
// invalidModal();
// });
// }
ReactDOM.render(<App />, document.getElementById('layout'));