Vue element-ui tree rendering issu

problem description

I"m going to use element-ui to render such a tree structure, with word folders and individual test questions under the parent file, and grandson folders and grandson test questions under the child file


elemtn-ui

.

related codes

/ / Please paste the code text below (do not replace the code with pictures)

        <el-tree
          :data="catalogList"
          :props="{
            label: "Name"
          }"
          show-checkbox
          accordion
          node-key="id">
            <span class="custom-tree-node" slot-scope="{ node, data }">
              <span>{{ node.label }}</span>
            </span>
        </el-tree>

I can successfully render the folder with the above code, but I don"t know how to render the question

.
Feb.26,2022

you need to assemble the test questions and folders into children before you can render them side by side.
otherwise, it would not be difficult to write your own tree component.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ffe7-4f140.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ffe7-4f140.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?