Commit 96259d00 authored by mercury233's avatar mercury233

update search

parent 3377738e
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<mat-icon>menu</mat-icon> <mat-icon>menu</mat-icon>
</button> </button>
<form (submit)="search(searchControl.value)"> <form (submit)="search(searchControl.value)">
<input type="search" placeholder="卡片搜索" name="key" [matAutocomplete]="auto" [formControl]="searchControl"> <input type="search" placeholder="输入卡名搜索..." name="key" [matAutocomplete]="auto" [formControl]="searchControl">
<mat-autocomplete autoActiveFirstOption #auto="matAutocomplete"> <mat-autocomplete autoActiveFirstOption #auto="matAutocomplete">
<mat-option *ngFor="let card of suggestion | async" [value]="card" (onSelectionChange)="search(card)"> <mat-option *ngFor="let card of suggestion | async" [value]="card" (onSelectionChange)="search(card)">
......
...@@ -63,8 +63,8 @@ export class LobbyComponent { ...@@ -63,8 +63,8 @@ export class LobbyComponent {
} }
search(key: string) { search(key: string) {
const url = new URL('http://www.ourocg.cn/S.aspx'); const url = new URL('https://ygocdb.com/');
url.searchParams.set('key', key); url.searchParams.set('search', key);
open(url.toString()); open(url.toString());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment