按钮防重复点击

This commit is contained in:
2023-08-23 16:26:39 +08:00
parent 6060a36d92
commit f6ba33b0a2
11 changed files with 95 additions and 107 deletions

View File

@ -37,15 +37,15 @@ export default {
methods:{
async getList(){
let result=await getToDoList();
if(result.code === 200){
// if(result.code === 200){
this.todolist=result.data;
if(this.todolist.length === 0){
if(this.todolist?.length === 0){
this.show=true
}else {
this.show=false
}
console.log("this.todolist",this.todolist.length)
}
// console.log("this.todolist",this.todolist?.length)
// }
},
async noPass(item){
let result=await toDoAudit({