Commit cddb9b77 authored by nick zheng's avatar nick zheng

fix: 弹窗按钮内容及应用设置页多语言

parent ca9e4b38
......@@ -93,13 +93,15 @@ function handleConfirm() {
<slot v-if="slots.footer" name="footer" />
<div v-else class="flex w-full items-center justify-end">
<NButton class="h-[32px]! rounded-md! px-6!" @click="handleCloseModal"> {{ t(confirmBtnText) }} </NButton>
<NButton class="h-[34px]! rounded-full! px-6! min-w-[96px]!" @click="handleCloseModal">
{{ t(cancelBtnText) }}
</NButton>
<NButton
:loading="btnLoading"
type="primary"
:bordered="false"
:disabled="btnDisabled"
class="h-[32px]! px-6! rounded-md! ml-4!"
class="h-[34px]! px-6! rounded-full! ml-4! min-w-[96px]!"
@click="handleConfirm"
>
{{ t(confirmBtnText) }}
......
......@@ -59,7 +59,7 @@ const personalAppConfig = computed(() => personalAppConfigStore.$state)
const menuOptions = computed(() => {
return sidebarMenus.map((item) => {
return {
label: item.label,
label: () => h('span', {}, t(item.label)),
key: item.key,
routeName: item.routeName,
icon: () => h(CustomIcon, { icon: item.icon || 'icon-home' }),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment