Compare commits

..

No commits in common. "dev" and "v1.1.161" have entirely different histories.

3 changed files with 4 additions and 12 deletions

View file

@ -228,7 +228,7 @@ const score5 = computed(() => {
Number(other_training_percent.value)) /
(isSelectionPartfour.value ? 4 : 3);
const total = Math.trunc(rawTotal);
const total = Math.round(rawTotal);
develop_result.value = total > 60 ? 1 : 0;

View file

@ -255,7 +255,7 @@ const score5 = computed(() => {
Number(other_training_percent.value)) /
(isSelectionPartfour.value ? 4 : 3);
const total = Math.trunc(rawTotal);
const total = Math.round(rawTotal);
develop_result.value = total > 60 ? 1 : 0;

View file

@ -362,21 +362,13 @@ export const useCounterMixin = defineStore("mixin", () => {
const messageError = (q: any, e: any = "", msg: string = "") => {
if (e.response !== undefined) {
if (e.response.data.status !== undefined) {
if (
e.response.data.status == 401 ||
(e.response.data.status == 404 &&
e.response.data.message == "ไม่พบข้อมูลสิทธิ์")
) {
if (e.response.data.status == 401) {
//invalid_token
const msg =
e.response.data.status == 401
? "ล็อกอินหมดอายุ กรุณาล็อกอินใหม่อีกครั้ง"
: e.response.data.message;
q.dialog({
component: CustomComponent,
componentProps: {
title: `พบข้อผิดพลาด`,
message: msg,
message: `ล็อกอินหมดอายุ กรุณาล็อกอินใหม่อีกครั้ง`,
icon: "warning",
color: "red",
onlycancel: true,