Kiosk entry input, gage lab tag column, model image subpath fix

This commit is contained in:
2026-07-20 11:14:20 -04:00
parent c2e1b9b367
commit cb9ede497d
8 changed files with 52 additions and 72 deletions

View File

@@ -131,6 +131,7 @@ import { useRoute } from 'vue-router'
import JsBarcode from 'jsbarcode'
import { renderQrDataUrl } from './qrLogo'
import { getSetting } from '@/utils/siteSettings'
import { withBase } from '@/utils/basePath'
import {
TYPE_CONFIG, hasLocationType, resolveDefaultEncodes,
effectiveEncodes as effEncodes, resolveCodeText as resolveText, captionFor,
@@ -171,7 +172,7 @@ const cardTitle = computed(() => {
const imageUrl = computed(() => {
const ext = extension.value
return (ext && ext.imageurl) ? ext.imageurl : null
return (ext && ext.imageurl) ? withBase(ext.imageurl) : null
})
// Small identity table shown on the card.

View File

@@ -54,7 +54,7 @@ const modelName = computed(() => {
const imageUrl = computed(() => {
if (!machine.value) return null
const img = machine.value.machine?.imageurl
if (img) return img.startsWith('/') ? img : `/images/models/machines/${img}`
if (img) return withBase(img.startsWith('/') ? img : `/images/models/machines/${img}`)
return null
})