Commit cddb9b77 authored by nick zheng's avatar nick zheng

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

parent ca9e4b38
...@@ -93,13 +93,15 @@ function handleConfirm() { ...@@ -93,13 +93,15 @@ function handleConfirm() {
<slot v-if="slots.footer" name="footer" /> <slot v-if="slots.footer" name="footer" />
<div v-else class="flex w-full items-center justify-end"> <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 <NButton
:loading="btnLoading" :loading="btnLoading"
type="primary" type="primary"
:bordered="false" :bordered="false"
:disabled="btnDisabled" :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" @click="handleConfirm"
> >
{{ t(confirmBtnText) }} {{ t(confirmBtnText) }}
......
...@@ -59,7 +59,7 @@ const personalAppConfig = computed(() => personalAppConfigStore.$state) ...@@ -59,7 +59,7 @@ const personalAppConfig = computed(() => personalAppConfigStore.$state)
const menuOptions = computed(() => { const menuOptions = computed(() => {
return sidebarMenus.map((item) => { return sidebarMenus.map((item) => {
return { return {
label: item.label, label: () => h('span', {}, t(item.label)),
key: item.key, key: item.key,
routeName: item.routeName, routeName: item.routeName,
icon: () => h(CustomIcon, { icon: item.icon || 'icon-home' }), 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