Commit b66e2495 authored by 皮倩雯's avatar 皮倩雯

fix: '数据库初始化界面访问检查加载loading效果'

parent da6f5f6b
Pipeline #56582 passed with stages
...@@ -46,7 +46,6 @@ import { ...@@ -46,7 +46,6 @@ import {
import { BarcodeOutlined, EditOutlined } from '@ant-design/icons'; import { BarcodeOutlined, EditOutlined } from '@ant-design/icons';
import styles from './DatabaseInitialization.less'; import styles from './DatabaseInitialization.less';
import styles1 from '../InitDataBase/InitDataBase.less'; import styles1 from '../InitDataBase/InitDataBase.less';
import { objectOf } from 'prop-types';
const CheckboxGroup = Checkbox.Group; const CheckboxGroup = Checkbox.Group;
const { Option } = Select; const { Option } = Select;
...@@ -580,7 +579,9 @@ const DatabaseInitialization = props => { ...@@ -580,7 +579,9 @@ const DatabaseInitialization = props => {
let obj = form.getFieldsValue(); let obj = form.getFieldsValue();
GetDbChange(); GetDbChange();
deleteInitDBLogNew(); deleteInitDBLogNew();
setCardLoading(true);
CheckDatabaseIsExist({ ...obj }).then(res => { CheckDatabaseIsExist({ ...obj }).then(res => {
setCardLoading(false);
if (res.code == 0) { if (res.code == 0) {
// 数据库不存在 // 数据库不存在
if (res.data === false) { if (res.data === false) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment