Skip to content

Commit 9877034

Browse files
committed
chore: update vr syntax
1 parent b4df236 commit 9877034

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
"vitepress-plugin-llms": "^1.7.5",
204204
"vitest": "^3.2.4",
205205
"vue": "^3.5.21",
206-
"vue-router": "https://pkg.pr.new/vue-router@4b05bce",
206+
"vue-router": "https://pkg.pr.new/vue-router@3646b9c",
207207
"vue-router-mock": "^2.0.0",
208208
"vue-tsc": "^3.0.7",
209209
"vuefire": "^3.2.2",

playground-experimental/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
"mande": "^2.0.9",
1919
"pinia": "^3.0.3",
2020
"vue": "^3.5.18",
21-
"vue-router": "https://pkg.pr.new/vue-router@4b05bce"
21+
"vue-router": "https://pkg.pr.new/vue-router@3646b9c"
2222
}
2323
}

pnpm-lock.yaml

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/codegen/generateRouteResolver.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ describe('generateRouteRecordPath', () => {
6262
{
6363
b: {},
6464
},
65-
["a",0],
65+
["a",1],
6666
),"
6767
`)
6868
})
@@ -82,7 +82,7 @@ describe('generateRouteRecordPath', () => {
8282
b: {},
8383
c: {},
8484
},
85-
["a",0,0],
85+
["a",1,1],
8686
),"
8787
`)
8888
})
@@ -97,7 +97,7 @@ describe('generateRouteRecordPath', () => {
9797
{
9898
b: {},
9999
},
100-
["a",0],
100+
["a",1],
101101
),"
102102
`)
103103
})
@@ -112,7 +112,7 @@ describe('generateRouteRecordPath', () => {
112112
{
113113
b: {repeat: true, },
114114
},
115-
["a",0],
115+
["a",1],
116116
),"
117117
`)
118118
})
@@ -127,7 +127,7 @@ describe('generateRouteRecordPath', () => {
127127
{
128128
b: {repeat: true, },
129129
},
130-
["a",0],
130+
["a",1],
131131
),"
132132
`)
133133
})
@@ -164,7 +164,7 @@ describe('generateRouteRecordPath', () => {
164164
{
165165
all: {},
166166
},
167-
[1],
167+
[0],
168168
),"
169169
`)
170170
})
@@ -183,7 +183,7 @@ describe('generateRouteRecordPath', () => {
183183
id: {},
184184
all: {},
185185
},
186-
["a",["some-",0],1],
186+
["a",["some-",0],0],
187187
),"
188188
`)
189189
})

src/core/tree.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ export class TreeNode {
355355
? segment
356356
: // param
357357
segment.isSplat
358-
? 1
359-
: 0
358+
? 0
359+
: 1
360360
)
361361

362362
if (subSegments.length > 1) {

0 commit comments

Comments
 (0)