多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[toc] ### 1. 在rename方法内调用重命名接口,实现重命名功能 ``` rename(index){ let item = index !== false ? this.list[index] : this.checkList[0] let value = item.name this.$Modal.confirm({ render: (h) => { return h('Input', { props: { value: value, autofocus: true, placeholder: '请填写新名称...' }, on: { input: (val) => { value = val; } } }) }, onOk:()=>{ this.axios.post('/api/file/rename',{ id:item.id, name:value },{ token:true }).then(res=>{ this.getData() this.$Message.success('修改成功') this.checkAllChange(false) }) } }) }, ```