UI แบบสํารวจความคิดเห็นการทดลองปฏิบัติหน้าที่ราชการ
This commit is contained in:
parent
da958b9956
commit
149831f897
7 changed files with 341 additions and 3 deletions
|
|
@ -9,11 +9,15 @@ import CustomComponent from "@/components/CustomDialog.vue";
|
|||
import avatar from "@/assets/avatar_user.jpg";
|
||||
import { tokenParsed, logout } from "@/plugins/auth";
|
||||
|
||||
import { useDataStore } from '@/stores/data'
|
||||
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
|
||||
const $q = useQuasar();
|
||||
const profileImg = ref<string>("");
|
||||
const dataStore = useDataStore()
|
||||
|
||||
const mixin = useCounterMixin();
|
||||
const {
|
||||
date2Thai,
|
||||
|
|
@ -46,7 +50,7 @@ async function checkUser() {
|
|||
.get(config.API.profilePosition())
|
||||
.then(async (res) => {
|
||||
const data = res.data.result;
|
||||
|
||||
dataStore.isProbation = data.isProbation
|
||||
if (data.avatarName) {
|
||||
await getImg(data.profileId, data.avatarName);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue