修正了一部分问题

This commit is contained in:
luyuan 2020-10-30 17:08:11 +08:00
parent 4d28b402c5
commit c612e92b60
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
2 changed files with 3 additions and 2 deletions

View File

@ -630,6 +630,7 @@ export async function editsystemsetting(e?: any): Promise<boolean> {
const res = await put(`member/${store.state.userinfo.memberid}`,newdata);
console.log(res)
if(res.code == 0){
location.reload();
message.success("修改成功")
store.dispatch("setUserInfo");
return true;

View File

@ -23,7 +23,7 @@
<!-- 时区 -->
<a-menu-item v-for="(i,j) in zonelist" :key="j" @click="zonechange(i.zoneid)" style="position: relative;">
<div class="selitem">
<span>{{i.city}}{{i.gmt}}</span>
<span :style="{'color': i.zoneid == userinfo.zoneid ? '#06C7AE' : ''}">{{i.city}}{{i.gmt}}</span>
<img src="@/static/images/duihao.png" alt="" v-if="i.zoneid == userinfo.zoneid" class="duihao">
</div>
</a-menu-item>
@ -80,7 +80,7 @@
<!-- 语言 -->
<a-menu-item v-for="(i,j) in languagelist" :key="j" style="position: relative;">
<div class="selitem" @click="setlanguage(i.value)">
<span>{{i.name}}</span>
<span :style="{'color': i.name == userinfo.language ? '#06C7AE' : ''}">{{i.name}}</span>
<img src="@/static/images/duihao.png" alt="" v-if="i.name == userinfo.language" class="duihao">
</div>
</a-menu-item>