Bläddra i källkod

【Uas移动端】【列表点击不跳转】

wuyx 2 månader sedan
förälder
incheckning
4c1a4c10be
1 ändrade filer med 4 tillägg och 2 borttagningar
  1. 4 2
      uas-office-web/uas-mobile/src/pages/private/service/ServiceList.jsx

+ 4 - 2
uas-office-web/uas-mobile/src/pages/private/service/ServiceList.jsx

@@ -50,8 +50,10 @@ class ServiceList extends Component {
    * 列表点击事件
    */
   onItemClick = (rowData) => {
-    this.props.history.push(
-      '/serviceDetail/' + rowData.id + '/' + this.caller + '/' + this.title)
+    if(rowData.id > 0 ){
+      this.props.history.push(
+          '/serviceDetail/' + rowData.id + '/' + this.caller + '/' + this.title)
+    }
   }
 
   /**