Browse Source

去掉工况返回按钮

xujunjie 1 năm trước cách đây
mục cha
commit
18823ad859
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      src/pages/SmartOps/index.js

+ 4 - 4
src/pages/SmartOps/index.js

@@ -15,7 +15,7 @@ import {
   useRequest,
   useSearchParams,
 } from '@umijs/max';
-import { Button, Tabs } from 'antd';
+import { Tabs } from 'antd';
 import dayjs from 'dayjs';
 import { useEffect, useMemo, useRef, useState } from 'react';
 import Analysis from './Analysis';
@@ -275,8 +275,8 @@ function SmartOps(props) {
 
   return (
     <PageContent>
-      <PageTitle>智慧分析</PageTitle>
-      {time && (
+      <PageTitle returnable={time}>智慧分析</PageTitle>
+      {/* {time && (
         <Button
           type="primary"
           style={{ marginBottom: 20 }}
@@ -284,7 +284,7 @@ function SmartOps(props) {
         >
           返回
         </Button>
-      )}
+      )} */}
       <div className={`card-box ${styles.topContent}`}>
         <div className={styles.titleContent}>
           <span className={styles.time}>{showTime}</span>