修改借书时自动填充用户id

This commit is contained in:
zhanghongyu04 2025-01-05 23:37:34 +08:00
parent 175209ba0b
commit d34ab7fedd

View File

@ -98,7 +98,7 @@ export default {
borrowDialogTitle: "借书",
//
borrowForm: {
userId: "",
userId: "", //
bookId: "",
borrowDate: null,
expectedReturnDate: null,
@ -137,6 +137,10 @@ export default {
//
this.borrowForm.bookId = row.bookId;
}
//
this.borrowForm.userId = this.$store.state.user.id || ""; // 使id
this.borrowDialogVisible = true;
},