多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[toc] ### 1. 获取文件列表的数据 ### 2. 对获取到的数据进行处理 ``` //index.vue //对请求到的数据进行处理 formatList(data){ return data.map(item=>{ item.type = item.ext === '' ? 'dir' : item.ext.substring(0,item.ext.lastIndexOf('/')) item.checked = false return item }) }, // 加载数据 getData(){ this.axios.get('/api/file?file_id=0',{ token:true, }).then(res=>{ let list = this.formatList(res.data) this.list = list }) }, ```