mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
v1.9 优化一些细微bug
This commit is contained in:
parent
745b8235dc
commit
0e772b97f1
@ -9,6 +9,7 @@ export function listSystemInfo(params) {
|
||||
params
|
||||
}).then(response => {
|
||||
const res = response.data
|
||||
localStorage.setItem('java110SystemInfo', JSON.stringify(res.data[0]))
|
||||
if (res.code == 0) {
|
||||
resolve(res)
|
||||
} else {
|
||||
|
||||
@ -128,7 +128,7 @@
|
||||
:placeholder="$t('feeConfigManage.enterFormula')" :rows="4" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-col :span="24" class="text-left">
|
||||
<el-form-item :label="$t('common.explanation')">
|
||||
<div>C {{ $t('feeConfigManage.explanationC') }}</div>
|
||||
<div>F {{ $t('feeConfigManage.explanationF') }}</div>
|
||||
|
||||
@ -144,7 +144,7 @@
|
||||
:placeholder="$t('feeConfigManage.enterFormula')" :rows="4" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-col :span="24" class="text-left">
|
||||
<el-form-item :label="$t('common.explanation')">
|
||||
<div>C {{ $t('feeConfigManage.explanationC') }}</div>
|
||||
<div>F {{ $t('feeConfigManage.explanationF') }}</div>
|
||||
|
||||
@ -69,6 +69,7 @@ export const messages = {
|
||||
sizeLimit:'File size must be less than 2MB',
|
||||
required:'Required',
|
||||
invalid:'Invalid',
|
||||
explanation:'Explanation',
|
||||
}
|
||||
},
|
||||
zh: {
|
||||
@ -141,6 +142,7 @@ export const messages = {
|
||||
sizeLimit:'文件大小必须小于2MB',
|
||||
required:'必填',
|
||||
invalid:'无效',
|
||||
explanation:'说明',
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -106,7 +106,11 @@ export default {
|
||||
keys: this.settingKeys,
|
||||
settingType: this.conditions.settingType
|
||||
}
|
||||
await saveCommunitySetting(params)
|
||||
const { code, msg } = await saveCommunitySetting(params)
|
||||
if (code != 0) {
|
||||
this.$message.error(msg)
|
||||
return;
|
||||
}
|
||||
this.$message.success(this.$t('common.saveSuccess'))
|
||||
this.loadSettingKeys()
|
||||
} catch (error) {
|
||||
|
||||
@ -80,14 +80,19 @@ export default {
|
||||
this.$refs.pwdForm.validate(async (valid) => {
|
||||
if (valid) {
|
||||
try {
|
||||
await updatePassword({
|
||||
const {code,msg} = await updatePassword({
|
||||
oldPwd: this.form.oldPassword,
|
||||
newPwd: this.form.newPassword,
|
||||
reNewPwd:this.form.confirmPassword
|
||||
})
|
||||
if(code != 0){
|
||||
this.$message.error(msg)
|
||||
return;
|
||||
}
|
||||
this.$message.success('密码修改成功')
|
||||
this.$refs.pwdForm.resetFields()
|
||||
} catch (error) {
|
||||
this.$message.error(error)
|
||||
console.error('修改密码失败:', error)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user