瀏覽代碼

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();