瀏覽代碼

移动端excel详情页

xjj 2 年之前
父節點
當前提交
722a0a44db
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. 1 1
      config/router.config.js
  2. 1 2
      src/pages/Detail/Mobile.js

+ 1 - 1
config/router.config.js

@@ -42,7 +42,7 @@ export default [
         ],
       },
       {
-        path: '/mobile/detail/:projectId/:templateId/:versionId',
+        path: '/mobile/detail/:templateId/:versionId',
         component: './Detail/Mobile',
       },
 

+ 1 - 2
src/pages/Detail/Mobile.js

@@ -1,4 +1,4 @@
-import React from 'react';
+import React, { useEffect } from 'react';
 import styles from './Index.less';
 import LuckySheet from './LuckySheet';
 
@@ -7,7 +7,6 @@ function Mobile(props) {
     match: { params },
   } = props;
 
-  const projectId = parseInt(params.projectId);
   const templateId = parseInt(params.templateId);
   const version = { id: parseInt(params.versionId), flow_id: true };