We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consumerではカタログストアのアクションで、 カテゴリとブランドについてデータをフェッチした後に{ id: 0, name: 'すべて' }のレコードを追加している。 これはセレクトボックスで「すべて」を選べるようにするためのUIの都合なので、 この処理についてはCatalogViewに移動したい。
{ id: 0, name: 'すべて' }
現在のConsumerのカタログに関するつくりとして、 各ページでカタログストアで定義したStateを参照しているので、 このつくりをやめる必要がありそう。
actions: { async fetchCategories() { const response = await catalogCategoriesApi.getCatalogCategories(); this.categories = response.data; this.categories.unshift({ id: 0, name: 'すべて' }); },
<label class="mr-2 font-bold" >カテゴリ <select v-model="selectedCategory" class="w-48 border-2"> <option v-for="category in getCategories" :key="category.id" :value="category.id" > {{ category.name }} </option> </select> </label>
ここにこの Issue の完了条件を箇条書きで記載します。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
概要
Consumerではカタログストアのアクションで、
カテゴリとブランドについてデータをフェッチした後に
{ id: 0, name: 'すべて' }
のレコードを追加している。これはセレクトボックスで「すべて」を選べるようにするためのUIの都合なので、
この処理についてはCatalogViewに移動したい。
現在のConsumerのカタログに関するつくりとして、
各ページでカタログストアで定義したStateを参照しているので、
このつくりをやめる必要がありそう。
詳細 / 機能詳細(オプション)
完了条件
ここにこの Issue の完了条件を箇条書きで記載します。
The text was updated successfully, but these errors were encountered: