ZaiZai %!s(int64=2) %!d(string=hai) anos
pai
achega
2bc7e45aae
Modificáronse 1 ficheiros con 1 adicións e 10 borrados
  1. 1 10
      pages/image/position.vue

+ 1 - 10
pages/image/position.vue

@@ -17,7 +17,7 @@
             <hc-tree counts @load="getAllLoad" @nodeTap="nodeAllTap"/>
         </view>
         <view class="relative" un-border-t="1 solid gray-2" v-if="typeIndex === 1">
-            <hc-tree @load="getWorksLoad" @nodeTap="nodeWorksTap"/>
+            <hc-tree @load="getWorksLoad" @nodeTap="nodeAllTap"/>
         </view>
 
         <!--底部操作栏-->
@@ -102,15 +102,6 @@ const getWorksLoad = async(node, resolve) => {
     resolve(getArrValue(data))
 }
 
-//树节点被点击
-const nodeWorksTap = ({data}) => {
-    if (data?.notExsitChild) {
-        treeItem.value = getObjValue(data);
-    } else {
-        treeItem.value = {};
-    }
-}
-
 const toPageNode = () => {
     const {primaryKeyId} = treeItem.value
     if (!primaryKeyId) {