Skip to content
New issue

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

カートに追加したとき一瞬変な画面がでる #420

Closed
tsuna-can-se opened this issue Apr 13, 2023 · 1 comment · Fixed by #434
Closed

カートに追加したとき一瞬変な画面がでる #420

tsuna-can-se opened this issue Apr 13, 2023 · 1 comment · Fixed by #434
Assignees
Labels
target: Dressca サンプルアプリケーションDresscaに関係がある 不具合 現在リリース中のバージョンに不具合・バグがある
Milestone

Comments

@tsuna-can-se
Copy link
Contributor

tsuna-can-se commented Apr 13, 2023

「商品がカートにありません」が一瞬出る。

@tsuna-can-se tsuna-can-se added this to the v1.2 milestone Apr 21, 2023
@tsuna-can-se tsuna-can-se added the target: Dressca サンプルアプリケーションDresscaに関係がある label Apr 21, 2023
@tomy7376
Copy link

■原因
・カート内容取得APIのレスポンスを待っている間、フロント側では「カートが空」という判定になっていた

■対応
・カート内容取得APIのレスポンスを待っている間はカートの状態は表示せず、レスポンスが返ってから表示するようにする
(レスポンスを待つ間はLoadingを表示する)

■以下のように修正する場合のコードを添付します。

Before:
画面遷移 → API待ち(この間「カートに商品がありません」が出る) → API応答 → カートの中身を表示

After:
画面遷移 → loading 表示 → API待ち → API応答 → Loading 消す → カートの中身を

src\views\basket
BasketView.vue.txt

src\components\common
Loading.vue.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
target: Dressca サンプルアプリケーションDresscaに関係がある 不具合 現在リリース中のバージョンに不具合・バグがある
Projects
None yet
3 participants