@@ -526,19 +526,35 @@ export default class extends Vue {
526
526
if ( this . queryString ) {
527
527
if ( this . currentAudioType === 'BGM' ) {
528
528
const arr = [ ]
529
- const re = new RegExp ( this . queryString )
530
- for ( let i = 0 ; i < this . bgmManifest . length ; i ++ ) {
531
- if ( re . test ( this . bgmManifest [ i ] . fileName ) ) {
532
- arr . push ( this . bgmManifest [ i ] )
529
+ if ( this . queryString === '/ok' ) {
530
+ for ( let i = 0 ; i < this . bgmManifest . length ; i ++ ) {
531
+ if ( this . bgmManifest [ i ] . _canplay ) {
532
+ arr . push ( this . bgmManifest [ i ] )
533
+ }
534
+ }
535
+ } else {
536
+ const re = new RegExp ( this . queryString )
537
+ for ( let i = 0 ; i < this . bgmManifest . length ; i ++ ) {
538
+ if ( re . test ( this . bgmManifest [ i ] . fileName ) ) {
539
+ arr . push ( this . bgmManifest [ i ] )
540
+ }
533
541
}
534
542
}
535
543
setAudioList ( arr )
536
544
} else if ( this . currentAudioType === 'LIVE' ) {
537
545
const arr = [ ]
538
- const re = new RegExp ( this . queryString )
539
- for ( let i = 0 ; i < this . liveManifest . length ; i ++ ) {
540
- if ( re . test ( this . liveManifest [ i ] . fileName ) ) {
541
- arr . push ( this . liveManifest [ i ] )
546
+ if ( this . queryString === '/ok' ) {
547
+ for ( let i = 0 ; i < this . liveManifest . length ; i ++ ) {
548
+ if ( this . liveManifest [ i ] . _canplay ) {
549
+ arr . push ( this . liveManifest [ i ] )
550
+ }
551
+ }
552
+ } else {
553
+ const re = new RegExp ( this . queryString )
554
+ for ( let i = 0 ; i < this . liveManifest . length ; i ++ ) {
555
+ if ( re . test ( this . liveManifest [ i ] . fileName ) ) {
556
+ arr . push ( this . liveManifest [ i ] )
557
+ }
542
558
}
543
559
}
544
560
setAudioList ( arr )
0 commit comments