change mytickets mock; add ignore for eslint error: unused state for statusToBe in ticketdetail
This commit is contained in:
+12
-1
@@ -3,13 +3,24 @@
|
||||
{
|
||||
"id": 6830,
|
||||
"type": 1,
|
||||
"status": 2,
|
||||
"status": 3,
|
||||
"device": "主机",
|
||||
"deviceModel": "技嘉",
|
||||
"owner": "武技栏",
|
||||
"phone": "18888888888",
|
||||
"createdTime": "2024-03-06T19:49:27.043865",
|
||||
"isConfirmed": false
|
||||
},
|
||||
{
|
||||
"id": 6831,
|
||||
"type": 1,
|
||||
"status": 2,
|
||||
"device": "ROG",
|
||||
"deviceModel": "幻 14",
|
||||
"owner": "晓洋",
|
||||
"phone": "18888888887",
|
||||
"createdTime": "2024-03-06T19:49:27.043865",
|
||||
"isConfirmed": false
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -113,6 +113,7 @@ export default class TicketDetail extends Component<{}, TicketDetailState> {
|
||||
comment: false,
|
||||
},
|
||||
reminderList: [],
|
||||
// eslint-disable-next-line react/no-unused-state
|
||||
statusToBe: 0,
|
||||
};
|
||||
|
||||
@@ -354,6 +355,7 @@ export default class TicketDetail extends Component<{}, TicketDetailState> {
|
||||
reminder: true,
|
||||
},
|
||||
},
|
||||
// eslint-disable-next-line react/no-unused-state
|
||||
statusToBe: status,
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user