fix(web-admin): refresh product form category tree when page reactivated.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
7297db1da1
commit
dfd0bb5cc3
1 file changed
+5
@@ -512,6 +512,11 @@
|
||||
onMounted(() => {
|
||||
if (isPageVariant.value) void handleOpen()
|
||||
})
|
||||
|
||||
/** 从「维护分类」返回时(keep-alive 或同实例复用)刷新树选 */
|
||||
onActivated(() => {
|
||||
if (isPageVariant.value) void loadCategoryOptions()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
Reference in new issue
Block a user