Skip to content

Commit

Permalink
campus-bus: translate eta unit
Browse files Browse the repository at this point in the history
  • Loading branch information
sparkcyf committed Feb 28, 2024
1 parent 3a1efc8 commit eab4225
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/.vuepress/components/BusChartVue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,10 @@ export default {
const buspos_2 = this.historyBusData.filter(f => (f.value[0] === 2) && (f.value[1] <= line2_pos_dir2)).map(f => parseInt((line2_pos_dir2 - f.value[1]) / 250))
//3
const buspos_3 = this.historyBusData.filter(f => (f.value[0] === 3) && (f.value[1] <= line2_pos_dir1)).map(f => parseInt((line2_pos_dir1 - f.value[1]) / 250))
const bustext_0 = buspos_0.length > 0 ? '\n ' + Math.min(...buspos_0) + '分钟' : ''
const bustext_1 = buspos_1.length > 0 ? '\n ' + Math.min(...buspos_1) + '分钟' : ''
const bustext_2 = buspos_2.length > 0 ? '\n ' + Math.min(...buspos_2) + '分钟' : ''
const bustext_3 = buspos_3.length > 0 ? '\n ' + Math.min(...buspos_3) + '分钟' : ''
const bustext_0 = buspos_0.length > 0 ? '\n ~' + Math.min(...buspos_0) + 'min.' : ''
const bustext_1 = buspos_1.length > 0 ? '\n ~' + Math.min(...buspos_1) + 'min.' : ''
const bustext_2 = buspos_2.length > 0 ? '\n ~' + Math.min(...buspos_2) + 'min.' : ''
const bustext_3 = buspos_3.length > 0 ? '\n ~' + Math.min(...buspos_3) + 'min.' : ''
let data1 = [];
let data2 = [];
Expand Down

0 comments on commit eab4225

Please sign in to comment.