4 Commits

3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -11,12 +11,12 @@ export default function App() {
<Routes> <Routes>
<Route <Route
path="/employee" path="/empleado-id/"
element={<IdCardGenerator />} element={<IdCardGenerator />}
/> />
<Route <Route
path="/employee/:employeeNumber" path="/empleado-id/:employeeNumber"
element={<EmployeeCard />} element={<EmployeeCard />}
/> />
+1 -1
View File
@@ -132,7 +132,7 @@ export async function renderQRCode(employeeId, canvasElement) {
document.body.appendChild(tmp); document.body.appendChild(tmp);
new QRCodeLib(tmp, { new QRCodeLib(tmp, {
text: `http://localhost:5173/employee/${cleanId}`, text: `http://localhost:5173/empleado-id/${cleanId}`,
width: 55, width: 55,
height: 55, height: 55,
colorDark: '#000000', colorDark: '#000000',
+1 -1
View File
@@ -4,5 +4,5 @@ import react from '@vitejs/plugin-react'
// https://vite.dev/config/ // https://vite.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [react()],
base: '/employee' base: '/empleado-id/'
}) })