fixing path

This commit is contained in:
Warunee Tamkoo 2025-02-07 12:16:29 +07:00
parent 3a1e6e1997
commit 0fdc351141
3 changed files with 9 additions and 9 deletions

View file

@ -2,12 +2,12 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>HRMS - Landing Page</title> <title>HRMS - Landing Page</title>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
<script type="module" src="/src/main.ts"></script> <script type="module" src="./src/main.ts"></script>
</body> </body>
</html> </html>

View file

@ -12,6 +12,9 @@ import screen2 from "@/assets/screen2.png";
import screen3 from "@/assets/screen3.png"; import screen3 from "@/assets/screen3.png";
import screen4 from "@/assets/screen4.png"; import screen4 from "@/assets/screen4.png";
import assetSso from "@/assets/sso.png";
import line2 from "@/assets/line2.png";
import type { DateCards } from "@/interface/index/Main"; import type { DateCards } from "@/interface/index/Main";
const $q = useQuasar(); const $q = useQuasar();
@ -190,7 +193,7 @@ onMounted(async () => {
} }
}) })
.catch((err: any) => { .catch((err: any) => {
router.push("/sso"); // window.location.href = `${config.API.URL_SSO}`;
}); });
getName(); getName();
@ -200,18 +203,14 @@ onMounted(async () => {
<template> <template>
<!-- Background Image --> <!-- Background Image -->
<div class="bg-img h-50 fixed-top" style="z-index: -1"> <div class="bg-img h-50 fixed-top" style="z-index: -1">
<img <img alt="" :src="line2" class="img_absolute_line" />
alt=""
src="https://bma-sso.frappet.synology.me/images/line2.png"
class="img_absolute_line"
/>
</div> </div>
<div class="row justify-center"> <div class="row justify-center">
<div class="col-md-8 col-sm-12"> <div class="col-md-8 col-sm-12">
<q-toolbar style="padding: 0px"> <q-toolbar style="padding: 0px">
<div class="row items-center q-py-sm"> <div class="row items-center q-py-sm">
<q-img src="@/assets/sso.png" style="width: 80px" /> <q-img :src="assetSso" style="width: 80px" />
<div class="text-white q-ml-md" v-if="$q.screen.gt.md"> <div class="text-white q-ml-md" v-if="$q.screen.gt.md">
<div class="text-grey-5 text-caption text-left"> <div class="text-grey-5 text-caption text-left">

View file

@ -8,6 +8,7 @@ import { VitePWA } from 'vite-plugin-pwa'
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
base: './', // Ensures relative paths
plugins: [ plugins: [
vue({ vue({
template: { transformAssetUrls }, template: { transformAssetUrls },