Browse Source

change title

lyc8503 4 years ago
parent
commit
ce08309e01

+ 1 - 5
frontend_refactor/public/index.html

@@ -5,10 +5,6 @@
     <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
     <meta name="viewport" content="width=device-width, initial-scale=1" />
     <meta name="theme-color" content="#000000" />
-    <meta
-      name="description"
-      content="Web site created using create-react-app"
-    />
     <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
     <!--
       manifest.json provides metadata used when your web app is installed on a
@@ -24,7 +20,7 @@
       work correctly both with client-side routing and a non-root public URL.
       Learn how to configure a non-root public URL by running `npm run build`.
     -->
-    <title>React App</title>
+    <title>Openpose</title>
   </head>
   <body>
     <noscript>You need to enable JavaScript to run this app.</noscript>

+ 7 - 1
frontend_refactor/src/containers/TaskList.js

@@ -46,13 +46,19 @@ class TaskList extends React.Component {
                             let raw = ""
 
                             try {
-                                raw = JSON.stringify(details.result.raw)
+                                raw = JSON.stringify(details)
                                 data = JSON.stringify(details.result.analysis.data)
                                 advice = JSON.stringify(details.result.analysis.advice)
                             } catch (e) {
 
                             }
 
+                            try {
+                                advice = JSON.stringify(details.result.advice)
+                            } catch (e) {
+
+                            }
+
                             return (
                                 <Collapse.Panel header={"任务 ID: " + x} key={x}>
                                     <p>状态: {details.status}</p>