From dae398af7420dfb24cf66364f06e6a384db38ae8 Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Thu, 18 Apr 2024 10:37:07 +0800
Subject: [PATCH] no message
---
src/page/newUser/setting.vue | 44 ++++++++++++++++++++++++++++----------------
1 files changed, 28 insertions(+), 16 deletions(-)
diff --git a/src/page/newUser/setting.vue b/src/page/newUser/setting.vue
index f7e6db1..3d72f89 100644
--- a/src/page/newUser/setting.vue
+++ b/src/page/newUser/setting.vue
@@ -148,35 +148,34 @@
{
text: "English",
icon: require("@/assets/ico/english.png"),
- lang: "zh-CN",
+ lang: "en",
},
- { text: "हिंदी", icon: require("@/assets/ico/india.png"), lang: "en" },
- { text: "한국인", icon: require("@/assets/ico/india.png"), lang: "hy" },
+ {
+ text: "繁体中文",
+ icon: require("@/assets/ico/tw.png"),
+ lang: "zh-TW",
+ },
+ { text: "हिंदी", icon: require("@/assets/ico/india.png"), lang: "hi" },
+ { text: "한국인", icon: require("@/assets/ico/india.png"), lang: "ko" },
{
text: "ภาษาไทย",
icon: require("@/assets/ico/india.png"),
- lang: "ty",
+ lang: "th",
},
{
text: "日本語にほんご",
icon: require("@/assets/ico/india.png"),
- lang: "ry",
+ lang: "ja",
},
-
- { text: "繁体中文", icon: require("@/assets/ico/tw.png"), lang: "tw" },
],
};
},
components: {},
created() {
this.getUserInfo();
- this.language = window.localStorage.getItem("language");
- console.log(window.localStorage.getItem("language"));
- if (this.language == "zh-CN") {
- this.language = "English";
- } else {
- this.language = "हिंदी";
- }
+ this.language = window.localStorage.getItem("language") || "zh-CN";
+ let arr = this.actions.filter((item) => item.lang === this.language);
+ this.language = arr[0].text;
},
methods: {
...mapMutations(["undataToken"]),
@@ -359,7 +358,11 @@
this.pswDialog = false;
this.settingDialog = false;
- Notify({ type: "success", message: this.$t("密码修改成功") });
+ Notify({
+ type: "success",
+ message: this.$t("密码修改成功"),
+ });
+ this.toRegister();
} else {
Toast(data.msg);
this.settingDialog = false;
@@ -382,6 +385,7 @@
.right_gos_txt {
margin-right: 15px;
}
+
.setting_content {
width: 100%;
height: 5rem;
@@ -439,6 +443,7 @@
}
}
}
+
.lang_box_txta {
width: 100%;
height: 100px;
@@ -446,6 +451,7 @@
line-height: 100px;
border-bottom: 1px solid #ecf5ff;
}
+
.lang_box_txt {
width: 100%;
height: 100px;
@@ -454,6 +460,7 @@
border-bottom: 1px solid #ecf5ff;
color: #2196f3;
}
+
.lang_box {
width: 100%;
display: flex;
@@ -461,6 +468,7 @@
align-items: center;
flex-direction: column;
}
+
.btn_s_box {
border: none;
background: #409eff;
@@ -474,12 +482,14 @@
font-weight: 600;
margin: 40px 20px 0 20px;
}
+
.btn_s {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
+
.jy {
width: 100%;
height: 1.5rem;
@@ -538,6 +548,7 @@
}
}
}
+
body {
background-color: #f8f8f8;
}
@@ -603,6 +614,7 @@
height: 2rem;
display: flex;
background-color: #fff;
+
> div {
width: 10%;
height: 100%;
@@ -632,4 +644,4 @@
}
}
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.3