mirror of
https://github.com/filegator/filegator.git
synced 2025-08-26 11:44:37 +02:00
js fixes & lint
This commit is contained in:
@@ -6,13 +6,14 @@
|
||||
<a @click="$emit('selected', node)">{{ node.name }}</a>
|
||||
|
||||
<ul v-if="node.children && node.children.length">
|
||||
<TreeNode v-for="child in node.children" :node="child" @selected="$emit('selected', $event)"></TreeNode>
|
||||
<TreeNode v-for="(child, index) in node.children" :node="child" :key="index" @selected="$emit('selected', $event)"></TreeNode>
|
||||
</ul>
|
||||
</li>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import api from '../../api/api'
|
||||
import _ from 'lodash'
|
||||
|
||||
export default {
|
||||
name: "TreeNode",
|
||||
|
Reference in New Issue
Block a user