aggiornamenti su PCB
This commit is contained in:
@@ -2040,11 +2040,15 @@ export const tools = {
|
||||
|
||||
getServerHost() {
|
||||
|
||||
const globalStore = useGlobalStore()
|
||||
try {
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
if (globalStore.serverHost) {
|
||||
return globalStore.serverHost
|
||||
} else {
|
||||
if (globalStore.serverHost) {
|
||||
return globalStore.serverHost
|
||||
} else {
|
||||
return globalStore.getServerHost()
|
||||
}
|
||||
} catch (e) {
|
||||
return process.env.MONGODB_HOST
|
||||
}
|
||||
|
||||
@@ -2410,7 +2414,19 @@ export const tools = {
|
||||
},
|
||||
|
||||
isTest() {
|
||||
return process.env.ISTEST === '1'
|
||||
try {
|
||||
return process.env.VUE_APP_ISTEST === '1'
|
||||
} catch (e) {
|
||||
return false
|
||||
}
|
||||
},
|
||||
|
||||
isLocale() {
|
||||
try {
|
||||
return process.env.VUE_APP_INLOCALE === '1'
|
||||
} catch (e) {
|
||||
return false
|
||||
}
|
||||
},
|
||||
|
||||
notshowPwd(payload: any) {
|
||||
@@ -8087,20 +8103,25 @@ export const tools = {
|
||||
|
||||
globalStore.isAppRunning = displayMode === 'standalone' || globalStore.homescreen
|
||||
} catch (e) {
|
||||
console.log('error navigator.standalone ?!')
|
||||
console.log('error navigator.standalone ?!', e)
|
||||
}
|
||||
|
||||
},
|
||||
initprompt() {
|
||||
// console.log('initprompt')
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
window.addEventListener('beforeinstallprompt', (event) => {
|
||||
event.preventDefault()
|
||||
console.log('beforeinstallprompt !')
|
||||
// Stash the event so it can be triggered later.
|
||||
globalStore.deferredPrompt = event
|
||||
})
|
||||
try {
|
||||
// console.log('initprompt')
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
window.addEventListener('beforeinstallprompt', (event) => {
|
||||
event.preventDefault()
|
||||
console.log('beforeinstallprompt !')
|
||||
// Stash the event so it can be triggered later.
|
||||
globalStore.deferredPrompt = event
|
||||
})
|
||||
} catch (e) {
|
||||
console.error('err', e)
|
||||
}
|
||||
},
|
||||
|
||||
isDevelop() {
|
||||
|
||||
Reference in New Issue
Block a user