updated
This commit is contained in:
parent
4e8cff183a
commit
fd4d45638c
3 changed files with 11 additions and 8 deletions
|
|
@ -15,7 +15,7 @@
|
|||
{{ header }}
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="!profileStore.isVerified">
|
||||
<div v-if="profileStore.isEdit">
|
||||
<div class="q-gutter-sm q-mx-sm" v-if="addData == false">
|
||||
<q-btn
|
||||
size="12px"
|
||||
|
|
|
|||
|
|
@ -1014,13 +1014,14 @@ async function checIsVerified() {
|
|||
const data = res.data.result;
|
||||
|
||||
profileStore.isVerified = data.isVerified;
|
||||
// profileStore.isVerified = data.isVerified
|
||||
// ? true
|
||||
// : roleRegistryverify.value
|
||||
// ? true
|
||||
// : roleKeyregistry.value
|
||||
// ? false
|
||||
// : false;
|
||||
console.log("isVerified===>", data.isVerified);
|
||||
console.log("roleRegistryverify===>", roleRegistryverify.value);
|
||||
console.log("roleKeyregistry===>", roleKeyregistry.value);
|
||||
if (data.isVerified || roleRegistryverify.value) {
|
||||
profileStore.isEdit = false;
|
||||
} else {
|
||||
profileStore.isEdit = true;
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import { defineStore } from "pinia";
|
|||
|
||||
export const useProfileDataStore = defineStore("profile", () => {
|
||||
const isVerified = ref<boolean>(false);
|
||||
const isEdit = ref<boolean>(false);
|
||||
const emplployeeClass = ref<string | null>("");
|
||||
interface profile {
|
||||
main: { columns: String[] };
|
||||
|
|
@ -79,6 +80,7 @@ export const useProfileDataStore = defineStore("profile", () => {
|
|||
return {
|
||||
isLoad,
|
||||
isVerified,
|
||||
isEdit,
|
||||
profileData,
|
||||
changeProfileColumns,
|
||||
birthDate,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue