ข้อมูลทะเบียนประวัติ => loader

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-07-03 16:57:18 +07:00
parent 3d59d4ed2b
commit fe713eea70
2 changed files with 32 additions and 21 deletions

View file

@ -8,9 +8,9 @@ import config from "@/app.config";
import { useRegistryInFormationStore } from "@/modules/10_registry/store/registry";
interface ArrayFileList {
id:string
pathName:string
fileName:string
id: string;
pathName: string;
fileName: string;
}
const fileList = ref<ArrayFileList[]>([]);
const store = useRegistryInFormationStore();
@ -48,7 +48,9 @@ function getData() {
messageError($q, e);
})
.finally(() => {
hideLoader();
setTimeout(() => {
hideLoader();
}, 1500);
});
}
@ -56,7 +58,7 @@ function getData() {
* ดาวนโหลดลงคไฟล
* @param fileName file name
*/
function downloadFile(fileName: string) {
function downloadFile(fileName: string) {
showLoader();
http
.get(