@xizs/nuxt-antui 0.0.38 → 0.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68,6 +68,13 @@ const items = computed(()=>{
68
68
 
69
69
  let routeInfo = useRouteInfo(props.items)
70
70
 
71
+ watch(routeInfo, (newVal, oldVal) => {
72
+ if (newVal && newVal.paths) {
73
+ state.selectedKeys = newVal.paths
74
+ state.openKeys = newVal.paths
75
+ }
76
+ })
77
+
71
78
  onMounted(()=>{
72
79
  state.selectedKeys=routeInfo?.value?.paths
73
80
  state.openKeys=routeInfo?.value?.paths
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xizs/nuxt-antui",
3
3
  "type": "module",
4
- "version": "0.0.38",
4
+ "version": "0.0.39",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",