|
|
@ -20,13 +20,15 @@ export default { |
|
|
|
config.value = useConfig(route.meta?.businessType, route.meta); |
|
|
|
let notify = null; |
|
|
|
PubSub.subscribe(event, async (_, data) => { |
|
|
|
notify?.close(); |
|
|
|
notify = ElNotification({ |
|
|
|
position: "bottom-right", |
|
|
|
title: "待同步库存数量", |
|
|
|
message: data, |
|
|
|
duration: 0, |
|
|
|
}); |
|
|
|
if (route.path === "/vmi/balance") { |
|
|
|
notify?.close(); |
|
|
|
notify = ElNotification({ |
|
|
|
position: "bottom-right", |
|
|
|
title: "待同步库存数量", |
|
|
|
message: data, |
|
|
|
duration: 0, |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
onUnmounted(() => PubSub.unsubscribe(event)); |
|
|
|