|
|
@@ -117,8 +117,8 @@ export const useKeepAliveStore = defineStore({
|
|
|
|
|
|
const isEditToDetail =
|
|
|
from.fullPath.includes("/edit") && to.fullPath.includes("/detail") && from.query?.id && from.meta?.needLock;
|
|
|
-
|
|
|
- if (isEditToDetail) {
|
|
|
+ const isSameBill = from.query?.code === to.query?.code;
|
|
|
+ if (isEditToDetail && isSameBill) {
|
|
|
UnLockBill({
|
|
|
keyword: String(from.meta.billtype),
|
|
|
billid: Number(from.query.id),
|