瀏覽代碼

去掉工况返回按钮

xujunjie 1 年之前
父節點
當前提交
18823ad859
共有 1 個文件被更改,包括 4 次插入4 次删除
  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>