Skip to content

Commit e4464e6

Browse files
msgill2017sendya
authored andcommitted
refactor AvtarDropdown hardcoded menu options to the language support
1 parent 46965e1 commit e4464e6

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.eslintrc.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"rules": {
3+
"space-before-function-paren": 0
4+
}
5+
}

.prettierrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"printWidth": 120,
33
"semi": false,
4-
"singleQuote": true
4+
"singleQuote": true,
5+
"prettier.spaceBeforeFunctionParen": true
56
}

src/components/GlobalHeader/AvatarDropdown.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
<a-menu class="ant-pro-drop-down menu" :selected-keys="[]">
99
<a-menu-item v-if="menu" key="center" @click="handleToCenter">
1010
<a-icon type="user" />
11-
个人中心
11+
{{ $t('menu.account.center') }}
1212
</a-menu-item>
1313
<a-menu-item v-if="menu" key="settings" @click="handleToSettings">
1414
<a-icon type="setting" />
15-
个人设置
15+
{{ $t('menu.account.settings') }}
1616
</a-menu-item>
1717
<a-menu-divider v-if="menu" />
1818
<a-menu-item key="logout" @click="handleLogout">
1919
<a-icon type="logout" />
20-
退出登录
20+
{{ $t('menu.account.logout') }}
2121
</a-menu-item>
2222
</a-menu>
2323
</template>

0 commit comments

Comments
 (0)