mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-03 07:46:18 +00:00
Build
This commit is contained in:
2
src/static/app/dist/index.html
vendored
2
src/static/app/dist/index.html
vendored
@@ -31,7 +31,7 @@
|
|||||||
// Update document base if needed
|
// Update document base if needed
|
||||||
const currentBase = document.querySelector('base')?.href || window.location.origin + '/'
|
const currentBase = document.querySelector('base')?.href || window.location.origin + '/'
|
||||||
const detectedBase = window.location.origin + getBasePath()
|
const detectedBase = window.location.origin + getBasePath()
|
||||||
|
console.log(detectedBase)
|
||||||
if (currentBase !== detectedBase) {
|
if (currentBase !== detectedBase) {
|
||||||
const baseTag = document.querySelector('base') || document.createElement('base')
|
const baseTag = document.querySelector('base') || document.createElement('base')
|
||||||
baseTag.href = detectedBase
|
baseTag.href = detectedBase
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
// Update document base if needed
|
// Update document base if needed
|
||||||
const currentBase = document.querySelector('base')?.href || window.location.origin + '/'
|
const currentBase = document.querySelector('base')?.href || window.location.origin + '/'
|
||||||
const detectedBase = window.location.origin + getBasePath()
|
const detectedBase = window.location.origin + getBasePath()
|
||||||
|
console.log(detectedBase)
|
||||||
if (currentBase !== detectedBase) {
|
if (currentBase !== detectedBase) {
|
||||||
const baseTag = document.querySelector('base') || document.createElement('base')
|
const baseTag = document.querySelector('base') || document.createElement('base')
|
||||||
baseTag.href = detectedBase
|
baseTag.href = detectedBase
|
||||||
|
Reference in New Issue
Block a user