Commit 45672a7 1 parent 83a5bc0 commit 45672a7 Copy full SHA for 45672a7
File tree 3 files changed +16
-9
lines changed
3 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 4
4
-
5
5
6
6
### Client
7
- -
7
+ - Fix: 一部のページ内リンクが正しく動作しない問題を修正
8
8
9
9
### Server
10
10
-
Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ export class Router extends EventEmitter<RouterEvent> implements IRouter {
373
373
this . currentRoute . value = res . route ;
374
374
this . currentKey = res . route . globalCacheKey ?? key ?? path ;
375
375
376
- if ( emitChange ) {
376
+ if ( emitChange && res . route . path !== '/:(*)' ) {
377
377
this . emit ( 'change' , {
378
378
beforePath,
379
379
path,
@@ -408,13 +408,17 @@ export class Router extends EventEmitter<RouterEvent> implements IRouter {
408
408
if ( cancel ) return ;
409
409
}
410
410
const res = this . navigate ( path , null ) ;
411
- this . emit ( 'push' , {
412
- beforePath,
413
- path : res . _parsedRoute . fullPath ,
414
- route : res . route ,
415
- props : res . props ,
416
- key : this . currentKey ,
417
- } ) ;
411
+ if ( res . route . path === '/:(*)' ) {
412
+ location . href = path ;
413
+ } else {
414
+ this . emit ( 'push' , {
415
+ beforePath,
416
+ path : res . _parsedRoute . fullPath ,
417
+ route : res . route ,
418
+ props : res . props ,
419
+ key : this . currentKey ,
420
+ } ) ;
421
+ }
418
422
}
419
423
420
424
public replace ( path : string , key ?: string | null ) {
Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ const devConfig = {
48
48
} ,
49
49
'/url' : httpUrl ,
50
50
'/proxy' : httpUrl ,
51
+ '/_info_card_' : httpUrl ,
52
+ '/bios' : httpUrl ,
53
+ '/cli' : httpUrl ,
51
54
} ,
52
55
} ,
53
56
build : {
You can’t perform that action at this time.
0 commit comments