shaogen1995 1 vuosi sitten
vanhempi
commit
5c3f2aa388

+ 0 - 1
src/assets/styles/base.css

@@ -6,7 +6,6 @@
 html {
   height: 100%;
   font-size: 14px;
-  user-select: none;
 }
 body {
   font: 1em/1.4 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB', 'STHeiti', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif;

+ 1 - 1
src/assets/styles/base.less

@@ -7,7 +7,7 @@
 html {
   height: 100%;
   font-size: 14px;
-  user-select: none;
+  // user-select: none;
 }
 
 body {

+ 5 - 4
src/pages/B2Scene/index.tsx

@@ -259,7 +259,8 @@ function B2Scene() {
               </Button>
             </Popconfirm>
 
-            {item.filePath ? (
+            {/* 暂时隐藏按钮 */}
+            {/* {item.filePath ? (
               <a
                 className="B2TabA"
                 // hidden={!item.filePath}
@@ -270,7 +271,7 @@ function B2Scene() {
               </a>
             ) : (
               <span className="B2TabANo">下载Json</span>
-            )}
+            )} */}
 
             <Popconfirm
               title="删除后无法恢复,是否删除?"
@@ -451,14 +452,14 @@ function B2Scene() {
           colseFu={() =>
             setAuditInfo({ oldState: -1, id: 0, sceneCode: "", auditDesc: "" })
           }
-          upTableFu={(id, newState, newDesc,newTime) => {
+          upTableFu={(id, newState, newDesc, newTime) => {
             const oldObj = store.getState().B2Scene.B2TableList;
             const newObj = {
               list: oldObj.list.map((v) => ({
                 ...v,
                 auditStatus: v.id === id ? newState : v.auditStatus,
                 auditDesc: v.id === id ? newDesc : v.auditDesc,
-                auditTime:v.id===id?newTime:v.auditTime
+                auditTime: v.id === id ? newTime : v.auditTime,
               })),
               total: oldObj.total,
             };

+ 2 - 0
src/pages/B3Push/index.tsx

@@ -104,6 +104,8 @@ function B3Push() {
 
   const pushFu = useCallback(
     async (code: string) => {
+      if (code.split(",").length <= 0) return;
+
       const res = await B3_APIpush(code.split(","));
 
       if (res.code === 0) {