Skip to content

Commit

Permalink
simplify codes - switch determination
Browse files Browse the repository at this point in the history
  • Loading branch information
SivanYeh committed Aug 19, 2023
1 parent e8150c6 commit 3159337
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pages/about/staff.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ import i18n from '@/i18n/about/staff.i18n'
export default {
layout(context) {
const ccip = context.query.ccip // to determine if it's opass mobile app
if (ccip) {
return 'ccip'
}
return 'default'
return ccip ? 'ccip' : 'default';

Check failure on line 44 in pages/about/staff.vue

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 14)

Delete `;·`
},
i18n,
name: 'PageStaff',
Expand Down

0 comments on commit 3159337

Please sign in to comment.