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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue