diff --git a/.env.development b/.env.development index b5dd21c..de90992 100644 --- a/.env.development +++ b/.env.development @@ -1,3 +1,3 @@ -VITE_API_BASEURL = "http://192.168.0.206:8060" -VITE_FILE_API_BASEURL = "http://192.168.0.206:8088" +VITE_API_BASEURL = "https://ibms-cvilux-api.production.mjmtech.com.tw" +VITE_FILE_API_BASEURL = "https://ibms-cvilux.production.mjmtech.com.tw" VITE_FORGE_BASEURL = "http://localhost:5173" \ No newline at end of file diff --git a/.env.production b/.env.production index 013439b..a7e4527 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,3 @@ -VITE_API_BASEURL = "http://192.168.0.206:8060" -VITE_FILE_API_BASEURL = "http://192.168.0.206:8088" +VITE_API_BASEURL = "https://ibms-cvilux-api.production.mjmtech.com.tw" +VITE_FILE_API_BASEURL = "https://ibms-cvilux.production.mjmtech.com.tw" VITE_FORGE_BASEURL = "http://202.39.218.221:8080/file/netzero" \ No newline at end of file diff --git a/src/apis/alert/index.js b/src/apis/alert/index.js index 0eb637b..e30d42b 100644 --- a/src/apis/alert/index.js +++ b/src/apis/alert/index.js @@ -79,8 +79,8 @@ export const getAlarmMemberList = async () => { }); }; -export const getNoticeList = async () => { - const res = await instance.post(GET_NOTICE_LIST_API, {}); +export const getNoticeList = async (lang) => { + const res = await instance.post(GET_NOTICE_LIST_API, { lang }); return apihandler(res.code, res.data, { msg: res.msg, diff --git a/src/apis/building/index.js b/src/apis/building/index.js index 9576c46..2df8932 100644 --- a/src/apis/building/index.js +++ b/src/apis/building/index.js @@ -16,8 +16,10 @@ export const getBuildings = async () => { }); }; -export const getAuth = async () => { - const res = await instance.post(GET_AUTHPAGE_API); +export const getAuth = async (lang) => { + const res = await instance.post(GET_AUTHPAGE_API, { + lang, + }); return apihandler(res.code, res.data, { msg: res.msg, code: res.code, diff --git a/src/components/alarm/AlarmDrawer.vue b/src/components/alarm/AlarmDrawer.vue index 3ff9fdc..a1993d1 100644 --- a/src/components/alarm/AlarmDrawer.vue +++ b/src/components/alarm/AlarmDrawer.vue @@ -24,13 +24,13 @@ const toggleErrIcon = () => { v-if="!showErr" :icon="['fas', 'comment-dots']" size="2x" - class="text-white menu-icon" + class="text-white w-10 m-auto" /> {{ $t("alarm.title") }} diff --git a/src/components/customUI/Pagination.vue b/src/components/customUI/Pagination.vue index 8418768..e075d4e 100644 --- a/src/components/customUI/Pagination.vue +++ b/src/components/customUI/Pagination.vue @@ -2,6 +2,8 @@ import { defineProps, ref, computed, inject, watch } from "vue"; import { twMerge } from "tailwind-merge"; import { data } from "autoprefixer"; +import { useI18n } from "vue-i18n"; +const { t } = useI18n(); /* ------------------------------------------------------------- > 6 頁 => 會有 input 跳頁,且前三後三顯示 ---------------------------------------------------------------- */ @@ -117,7 +119,7 @@ const pageInput = computed(() => { v-if="totalPage < 6" class="absolute -bottom-8 -translate-x-1/2 text-base text-center" > - 共 {{ dataSource.length }} 筆