remove base url
Main daploy / deploy (push) Successful in 46s

This commit is contained in:
2024-11-26 21:40:31 +02:00
parent 105b1173a1
commit 27f3aa3344
4 changed files with 4 additions and 6 deletions
+1 -2
View File
@@ -13,8 +13,7 @@ export const createQrCodeDocument = async (
>,
) => {
const uri = Math.abs(Date.now() - EPOHE).toString(36)
const urlBasePrefix = `${import.meta.env.BASE_URL}`.replace(/\/+$/, '')
const url = new URL(`${urlBasePrefix}/read/${uri}`, location.origin).toString()
const url = new URL(`/read/${uri}`, location.origin).toString()
const qrCodeDoc: QRCodeDocument = {
_id: `qr_code:${uri}`,
+1 -1
View File
@@ -91,7 +91,7 @@ const routes = [
]
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
history: createWebHistory(),
routes,
scrollBehavior(to, from, savedPosition) {
if (savedPosition) {
+1 -1
View File
@@ -81,7 +81,7 @@
// const success = ref(false)
// Конфигурация для шаринга
const siteUrl = encodeURIComponent(import.meta.env.BASE_URL)
const siteUrl = encodeURIComponent(location.origin)
const shareText = encodeURIComponent('Попробуйте НаСвязи — удобный способ связаться через QR-код!')
// const shareImage = encodeURIComponent(
// 'https://hereconnect.condev.ru/images/qr-code-logo-200x200.jpg',