💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[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) }) } }) }, ```