Co-authored-by: Cursor <cursoragent@cursor.com>
@@ -512,6 +512,11 @@
onMounted(() => {
if (isPageVariant.value) void handleOpen()
})
+
+ /** 从「维护分类」返回时(keep-alive 或同实例复用)刷新树选 */
+ onActivated(() => {
+ if (isPageVariant.value) void loadCategoryOptions()
+ })
</script>
<style scoped lang="scss">