From d6faf4f51a1b854699831300c69ddb596d42081f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 18 七月 2023 16:04:27 +0800 Subject: [PATCH] 2023-07-18 --- src/views/mkiframe/index.jsx | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/mkiframe/index.jsx b/src/views/mkiframe/index.jsx index d9f7572..e3a1cde 100644 --- a/src/views/mkiframe/index.jsx +++ b/src/views/mkiframe/index.jsx @@ -1,5 +1,6 @@ import React, {Component} from 'react' -import { Spin, notification } from 'antd' +import { Spin, notification, ConfigProvider } from 'antd' +import zhCN from 'antd/es/locale/zh_CN' import Api from '@/api' import asyncComponent from '@/utils/asyncLoadComponent' @@ -176,9 +177,11 @@ return ( <div className="main-iframe"> - {loading ? <Spin size="large" /> : null} - {!loading && type === 'CustomPage' ? <CustomPage MenuID={MenuId} param={{$BID: BID}} changeTemp={this.changeTemp}/> : null} - {!loading && type === 'BaseTable' ? <BaseTable MenuID={MenuId} param={{$BID: BID}} changeTemp={this.changeTemp}/> : null} + <ConfigProvider locale={zhCN}> + {loading ? <Spin size="large" /> : null} + {!loading && type === 'CustomPage' ? <CustomPage MenuID={MenuId} param={{$BID: BID}} changeTemp={this.changeTemp}/> : null} + {!loading && type === 'BaseTable' ? <BaseTable MenuID={MenuId} param={{$BID: BID}} changeTemp={this.changeTemp}/> : null} + </ConfigProvider> </div> ) } -- Gitblit v1.8.0