Ver 0.2.8
Added msg Server error in every pages Nuovo Gruppo non funziona. Corretto altre funzioni del Gruppo Errore del server" Network Error", fare pagina test con altri host per vedere se da lo stesso msg, con IP
This commit is contained in:
@@ -22,6 +22,34 @@ export default defineComponent({
|
||||
|
||||
const testServer = ref({})
|
||||
|
||||
const myrecfiltertoggle = ref(0)
|
||||
|
||||
const SERVER_TEST = ref([
|
||||
{ key: 1, label: 'Test', host: 'https://test.freeplanet.app:3001' },
|
||||
{ key: 2, label: 'Produzione', host: 'https://freeplanet.app:3000' },
|
||||
{ key: 3, label: 'Locale', host: 'http://192.168.0.200:3000' },
|
||||
])
|
||||
|
||||
watch(() =>
|
||||
myrecfiltertoggle.value, (value: any, oldValue: any) => {
|
||||
if (value) {
|
||||
const trovato = SERVER_TEST.value.find((rec: any) => rec.key === value)
|
||||
if (trovato) {
|
||||
globalStore.serverHost = trovato.host
|
||||
ricarica()
|
||||
}
|
||||
}
|
||||
},
|
||||
)
|
||||
const getoptions = computed( () => {
|
||||
const arr = []
|
||||
for (const rec of SERVER_TEST.value) {
|
||||
arr.push({label: rec.label, value: rec.key})
|
||||
}
|
||||
|
||||
return arr
|
||||
})
|
||||
|
||||
function mounted() {
|
||||
ricarica()
|
||||
}
|
||||
@@ -36,9 +64,11 @@ export default defineComponent({
|
||||
return {
|
||||
t,
|
||||
tools,
|
||||
getoptions,
|
||||
costanti,
|
||||
testServer,
|
||||
ricarica,
|
||||
myrecfiltertoggle,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -6,9 +6,18 @@
|
||||
class="bg-primary text-white"
|
||||
color="primary q-title"
|
||||
style="text-align: center;">
|
||||
<span class="mybanner">Server: {{testServer}}</span>
|
||||
<p class="mybanner">Server: {{tools.getServerHost()}}</p>
|
||||
<p class="mybanner">Risposta: {{testServer}}</p>
|
||||
</q-banner>
|
||||
|
||||
<q-btn-toggle
|
||||
v-model="myrecfiltertoggle"
|
||||
push
|
||||
glossy
|
||||
toggle-color="primary"
|
||||
:options="getoptions"
|
||||
/>
|
||||
|
||||
<div class="text-center q-ma-lg">
|
||||
<q-btn push size="lg" color="primary" rounded label="Ricarica" @click="ricarica"></q-btn>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user