mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-15 16:22:44 +00:00
Compare commits
2 commits
ff938eec8c
...
b3a2c2cc09
Author | SHA1 | Date | |
---|---|---|---|
b3a2c2cc09 | |||
2fd7a16573 |
2 changed files with 6 additions and 3 deletions
|
@ -239,6 +239,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const iDownload = (url: any, name: any) => {
|
const iDownload = (url: any, name: any) => {
|
||||||
|
if(name.split('.').reverse()[0] !== 'bin')name += '.bin';
|
||||||
fetch(url).then(e=>e.blob()).then(blob=>{
|
fetch(url).then(e=>e.blob()).then(blob=>{
|
||||||
const url = URL.createObjectURL(blob);
|
const url = URL.createObjectURL(blob);
|
||||||
const a = document.createElement('a');
|
const a = document.createElement('a');
|
||||||
|
|
|
@ -185,7 +185,7 @@ onMounted(async ()=>{
|
||||||
state.alt = parseFloat(altRef.value.inputRef.modelValue || '0')
|
state.alt = parseFloat(altRef.value.inputRef.modelValue || '0')
|
||||||
|
|
||||||
state.timer = setInterval(()=>{
|
state.timer = setInterval(()=>{
|
||||||
state.dt = new Date().toLocaleString('zh-CN', { timeZone: 'Asia/Shanghai' })
|
state.dt = new Date().toLocaleString()
|
||||||
localStorage.setItem('myLng', state.lng.toString());
|
localStorage.setItem('myLng', state.lng.toString());
|
||||||
localStorage.setItem('myLat', state.lat.toString());
|
localStorage.setItem('myLat', state.lat.toString());
|
||||||
localStorage.setItem('myAlt', state.alt.toString());
|
localStorage.setItem('myAlt', state.alt.toString());
|
||||||
|
@ -342,7 +342,8 @@ const getPass = async () => {
|
||||||
sat_line_2: state.satData.find(e => e.name == state.sat).path[1],
|
sat_line_2: state.satData.find(e => e.name == state.sat).path[1],
|
||||||
lat: state.lat,
|
lat: state.lat,
|
||||||
lng: state.lng,
|
lng: state.lng,
|
||||||
alt: state.alt
|
alt: state.alt,
|
||||||
|
tz: Intl.DateTimeFormat().resolvedOptions().timeZone
|
||||||
})
|
})
|
||||||
})).json()
|
})).json()
|
||||||
const passOption = []
|
const passOption = []
|
||||||
|
@ -394,7 +395,8 @@ const writeIt = async () => {
|
||||||
tx: state.tx,
|
tx: state.tx,
|
||||||
rx: state.rx,
|
rx: state.rx,
|
||||||
pass_time: state.pass.split('|')[0],
|
pass_time: state.pass.split('|')[0],
|
||||||
departure_time: state.pass.split('|')[1]
|
departure_time: state.pass.split('|')[1],
|
||||||
|
tz: Intl.DateTimeFormat().resolvedOptions().timeZone
|
||||||
})
|
})
|
||||||
})).json()
|
})).json()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue