lanjianrong před 4 roky
rodič
revize
2144fbe6a6

+ 5 - 3
src/pages/Product/Cloud/components/Detail/UpgradeModal.jsx

@@ -96,17 +96,19 @@ const UpgradeModal = props => {
       width={800}
       title={`确认${modalTitleEnum[type]}`}
       visible={visible}
-      confirmLoading={loading}
+      okButtonProps={{ loading }}
       onCancel={() => {
         setShowDeadline(false)
         onCancel()
         form?.resetFields()
       }}
-      onOk={handleonOk}>
+      onOk={handleonOk}
+    >
       {type === lockTypeEnum.GIVE || type === lockTypeEnum.LEND || type === lockTypeEnum.SALE ? (
         <div className="mb-6">
           <p className="pb-3">
-            为用户<b>{cloudUser.mobile}</b>,<b>{cloudUser.username}</b> {modalTitleEnum[type]} <b>{compilationName}</b>
+            为用户<b>{cloudUser.mobile}</b>,<b>{cloudUser.username}</b> {modalTitleEnum[type]}{' '}
+            <b>{compilationName}</b>
           </p>
           <div className="pb-5">
             <Switch onChange={onChange} checked={showDeadline} />