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