Преглед на файлове

Fixed issue where 404 didn't show if station didn't exist

theflametrooper преди 8 години
родител
ревизия
b1cb726209
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      frontend/components/Station/Station.vue

+ 3 - 0
frontend/components/Station/Station.vue

@@ -412,6 +412,9 @@
 								if (res.status == 'success') _this.songsList = res.data;
 							});
 						}
+					} else {
+						_this.$router.go('/404');
+						Toast.methods.addToast(res.message, 3000);
 					}
 					// UNIX client time before ping
 					let beforePing = Date.now();