fix: เพิ่ม เก็บข้อมูล profile kpi จากหน้า main
This commit is contained in:
parent
8168ede251
commit
b751615f81
2 changed files with 4 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ import {
|
|||
} from "@/plugins/auth";
|
||||
|
||||
import { useDataStore } from "@/stores/data";
|
||||
import { useKpiDataStore } from "@/modules/08_KPI/store";
|
||||
|
||||
// landing page config url
|
||||
const configParam = {
|
||||
|
|
@ -27,6 +28,7 @@ const router = useRouter();
|
|||
|
||||
const $q = useQuasar();
|
||||
const dataStore = useDataStore();
|
||||
const dataStoreKpi = useKpiDataStore();
|
||||
|
||||
const mixin = useCounterMixin();
|
||||
const {
|
||||
|
|
@ -65,6 +67,7 @@ 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