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