Skip to content

Commit 66f83ba

Browse files
committed
linter: make prop camelCase
1 parent b129c82 commit 66f83ba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/platform-ui/src/router.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ const router = createRouter({
146146
component: Admin,
147147
},
148148
{
149-
path: '/user/:_id',
150-
alias: '/u/:_id',
149+
path: '/user/:username',
150+
alias: '/u/:username',
151151
props: true,
152152
component: User,
153153
children: [

packages/platform-ui/src/views/User.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="text-subtitle-1">
33
<v-alert v-if="isNewUser" type="success" class="text-subtitle-1" variant="tonal" :prepend-icon="'mdi-check'">
4-
Welcome, {{ _id }}! Please take a moment to look through these settings:
4+
Welcome, {{ username }}! Please take a moment to look through these settings:
55
</v-alert>
66

77
<h1 class="text-h3">Account Settings</h1>
@@ -44,7 +44,7 @@ export default defineComponent({
4444
name: 'UserSettings',
4545
4646
props: {
47-
_id: {
47+
username: {
4848
type: String as PropType<string>,
4949
required: true,
5050
},

0 commit comments

Comments
 (0)