feat: update base path, and add image processing utility scripts
This commit is contained in:
+2
-2
@@ -11,12 +11,12 @@ export default function App() {
|
||||
<Routes>
|
||||
|
||||
<Route
|
||||
path="/employee"
|
||||
path="/empleado-id/"
|
||||
element={<IdCardGenerator />}
|
||||
/>
|
||||
|
||||
<Route
|
||||
path="/employee/:employeeNumber"
|
||||
path="/empleado-id/:employeeNumber"
|
||||
element={<EmployeeCard />}
|
||||
/>
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ export async function renderQRCode(employeeId, canvasElement) {
|
||||
document.body.appendChild(tmp);
|
||||
|
||||
new QRCodeLib(tmp, {
|
||||
text: `http://localhost:5173/employee/${cleanId}`,
|
||||
text: `http://localhost:5173/empleado-id/${cleanId}`,
|
||||
width: 55,
|
||||
height: 55,
|
||||
colorDark: '#000000',
|
||||
|
||||
+1
-1
@@ -4,5 +4,5 @@ import react from '@vitejs/plugin-react'
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
base: '/employee'
|
||||
base: '/empleado-id/'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user