fix: แก้กลับ
This commit is contained in:
parent
b751615f81
commit
417a6e5618
3 changed files with 2 additions and 5 deletions
|
|
@ -19,7 +19,7 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
|
|||
const work = ref<boolean>(false);
|
||||
const tabMain = ref<string>("");
|
||||
const dataProfile = ref<DataProfile>({
|
||||
profileId: "",
|
||||
profileId: null,
|
||||
prefix: "",
|
||||
rank: "",
|
||||
firstName: "",
|
||||
|
|
|
|||
|
|
@ -478,7 +478,7 @@ async function fetchProfileEvaluator(id: string) {
|
|||
|
||||
/** ดึงข้อมูลโปรไฟล์ */
|
||||
async function getProfile() {
|
||||
if (store.dataProfile.profileId) {
|
||||
if (!store.dataProfile.profileId) {
|
||||
await http
|
||||
.get(config.API.profilePosition())
|
||||
.then(async (res) => {
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ import {
|
|||
} from "@/plugins/auth";
|
||||
|
||||
import { useDataStore } from "@/stores/data";
|
||||
import { useKpiDataStore } from "@/modules/08_KPI/store";
|
||||
|
||||
// landing page config url
|
||||
const configParam = {
|
||||
|
|
@ -28,7 +27,6 @@ const router = useRouter();
|
|||
|
||||
const $q = useQuasar();
|
||||
const dataStore = useDataStore();
|
||||
const dataStoreKpi = useKpiDataStore();
|
||||
|
||||
const mixin = useCounterMixin();
|
||||
const {
|
||||
|
|
@ -67,7 +65,6 @@ async function checkUser() {
|
|||
.then(async (res) => {
|
||||
const data = await res.data.result;
|
||||
await dataStore.getData(data);
|
||||
dataStoreKpi.dataProfile = data;
|
||||
await dataStore.getProFileType();
|
||||
if (data.avatarName) {
|
||||
await getImg(data.profileId, data.avatarName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue