style: 系统设置多语言
This commit is contained in:
@@ -35,7 +35,7 @@ function fnEdit(v: boolean) {
|
||||
function fnSave() {
|
||||
Modal.confirm({
|
||||
title: t('common.tipTitle'),
|
||||
content: `确认要提交当前变更的版权声明吗?`,
|
||||
content: t('views.system.setting.sysCopyrightTipContent'),
|
||||
onOk() {
|
||||
// 发送请求
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
@@ -45,7 +45,7 @@ function fnSave() {
|
||||
state.loading = false;
|
||||
hide();
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
message.success('提交保存成功', 3);
|
||||
message.success(t('views.system.setting.saveSuccess'), 3);
|
||||
appStore.copyright = state.copyright;
|
||||
fnEdit(false);
|
||||
} else {
|
||||
@@ -72,7 +72,7 @@ onMounted(() => {
|
||||
v-model:value="state.copyright"
|
||||
allow-clear
|
||||
:maxlength="40"
|
||||
placeholder="输入版权声明"
|
||||
:placeholder="t('views.system.setting.sysCopyrightPlease')"
|
||||
></a-input>
|
||||
</a-form-item>
|
||||
|
||||
@@ -82,7 +82,7 @@ onMounted(() => {
|
||||
:disabled="state.copyright === state.flag"
|
||||
@click="fnSave"
|
||||
>
|
||||
提交保存
|
||||
{{ t('views.system.setting.saveSubmit') }}
|
||||
</a-button>
|
||||
<a-button style="margin-left: 10px" @click="fnEdit(false)">
|
||||
{{ t('common.cancel') }}
|
||||
@@ -92,15 +92,17 @@ onMounted(() => {
|
||||
|
||||
<template v-else>
|
||||
<div class="sys-copyright">{{ state.copyright }}</div>
|
||||
<a-button type="dashed" @click="fnEdit(true)"> 编辑 </a-button>
|
||||
<a-button type="dashed" @click="fnEdit(true)">
|
||||
{{ t('common.editText') }}
|
||||
</a-button>
|
||||
</template>
|
||||
</a-col>
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-typography>
|
||||
<a-typography-paragraph>
|
||||
版权声明限制
|
||||
{{ t('views.system.setting.sysCopyrightLimitation') }}
|
||||
<a-typography-text mark>40</a-typography-text>
|
||||
位字符长度
|
||||
{{ t('views.system.setting.charMaxLen') }}
|
||||
</a-typography-paragraph>
|
||||
</a-typography>
|
||||
</a-col>
|
||||
|
||||
Reference in New Issue
Block a user