-
-
-
-
-
-
- {{ errors.find((v) => v.name === "retypepass").text }}
-
-
diff --git a/app/components/user/Logout.vue b/app/components/user/Logout.vue
index 1207872..cee39a0 100644
--- a/app/components/user/Logout.vue
+++ b/app/components/user/Logout.vue
@@ -1,7 +1,7 @@
-
-
+
+
{{
$store.lang === "en"
? "Click the button below to log out of the system."
@@ -9,13 +9,17 @@
}}
-
-
-
+
diff --git a/app/components/user/Profile.vue b/app/components/user/Profile.vue
index a6552c4..c427f71 100644
--- a/app/components/user/Profile.vue
+++ b/app/components/user/Profile.vue
@@ -1,53 +1,64 @@
-
-
-
+
+
-
-
- {{ login.fullname }}
-
-
- {{ login.username }}
-
-
-
+
+
-
-
-
-
-
@@ -55,24 +66,16 @@
import Logout from "~/components/user/Logout";
import UserInfo from "~/components/user/UserInfo";
import ChangePass from "~/components/user/ChangePass";
+
const store = useStore();
-const lang = computed(() => store.lang);
-const isVietnamese = computed(() => lang.value === "vi");
-var login = store.login;
-var tabs = [
+const isVietnamese = computed(() => store.lang === "vi");
+const tabs = [
{ code: "info", vi: "Hồ sơ cá nhân", en: "Personal Information" },
{ code: "password", vi: "Đổi mật khẩu", en: "Change Password" },
{ code: "logout", vi: "Đăng xuất", en: "Logout" },
];
-var tab = ref("info");
+const tab = ref("info");
function changeTab(v) {
tab.value = v.code;
}
-
diff --git a/app/components/user/UserInfo.vue b/app/components/user/UserInfo.vue
index 1884f6e..881faf8 100644
--- a/app/components/user/UserInfo.vue
+++ b/app/components/user/UserInfo.vue
@@ -1,44 +1,52 @@
+
-
-
+ />
+
+
-
+
{{ record.username }}
-
+
-
+
{{ record.fullname }}
-
-
-
-
+
{{ $dayjs(record.create_time).format("L") }}
@@ -47,29 +55,3 @@
-