mirror of
https://github.com/paperdash/device-epd.git
synced 2024-11-04 12:00:27 +00:00
#54 wizard steps navigation fixed
This commit is contained in:
parent
5c9ecb3693
commit
16abe1b8bf
@ -113,10 +113,10 @@
|
||||
this.$router.push('/setup/name')
|
||||
},
|
||||
registerApiKey () {
|
||||
window.open('http://openweathermap.org/')
|
||||
window.open('https://openweathermap.org/')
|
||||
},
|
||||
stepBack () {
|
||||
this.$router.push('/setup/')
|
||||
this.$router.push('/setup/wifi')
|
||||
},
|
||||
},
|
||||
}
|
||||
|
@ -121,7 +121,9 @@
|
||||
},
|
||||
methods: {
|
||||
onWifiSelect (wifi) {
|
||||
if (wifi.secure) {
|
||||
if (wifi.ssid === this.settings.system.wifi) {
|
||||
this.nextStep()
|
||||
} else if (wifi.secure) {
|
||||
this.connectSSID = wifi.ssid
|
||||
this.wifiPasswordModal = true
|
||||
} else {
|
||||
@ -143,6 +145,9 @@
|
||||
stepBack () {
|
||||
this.$router.push('/setup/country')
|
||||
},
|
||||
nextStep () {
|
||||
this.$router.push('/setup/weather')
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user