Compare commits

..

No commits in common. "b3a2c2cc09447374e08de563fff9d31a00cf589e" and "ff938eec8c79dd3d26cb4722a429e37336927842" have entirely different histories.

2 changed files with 3 additions and 6 deletions

View file

@ -239,7 +239,6 @@
}
const iDownload = (url: any, name: any) => {
if(name.split('.').reverse()[0] !== 'bin')name += '.bin';
fetch(url).then(e=>e.blob()).then(blob=>{
const url = URL.createObjectURL(blob);
const a = document.createElement('a');

View file

@ -185,7 +185,7 @@ onMounted(async ()=>{
state.alt = parseFloat(altRef.value.inputRef.modelValue || '0')
state.timer = setInterval(()=>{
state.dt = new Date().toLocaleString()
state.dt = new Date().toLocaleString('zh-CN', { timeZone: 'Asia/Shanghai' })
localStorage.setItem('myLng', state.lng.toString());
localStorage.setItem('myLat', state.lat.toString());
localStorage.setItem('myAlt', state.alt.toString());
@ -342,8 +342,7 @@ const getPass = async () => {
sat_line_2: state.satData.find(e => e.name == state.sat).path[1],
lat: state.lat,
lng: state.lng,
alt: state.alt,
tz: Intl.DateTimeFormat().resolvedOptions().timeZone
alt: state.alt
})
})).json()
const passOption = []
@ -395,8 +394,7 @@ const writeIt = async () => {
tx: state.tx,
rx: state.rx,
pass_time: state.pass.split('|')[0],
departure_time: state.pass.split('|')[1],
tz: Intl.DateTimeFormat().resolvedOptions().timeZone
departure_time: state.pass.split('|')[1]
})
})).json()