ソースを参照

Set formatRequestedBy interval to 30 seconds and removed includeSeconds

Owen Diffey 2 年 前
コミット
85962142dc
1 ファイル変更2 行追加5 行削除
  1. 2 5
      frontend/src/components/SongItem.vue

+ 2 - 5
frontend/src/components/SongItem.vue

@@ -204,7 +204,7 @@ export default {
 			this.formatRequestedAt();
 			setInterval(() => {
 				this.formatRequestedAt();
-			}, 5000);
+			}, 30000);
 		}
 	},
 	methods: {
@@ -216,10 +216,7 @@ export default {
 			)
 				this.formatedRequestedAt = this.formatDistance(
 					parseISO(this.song.requestedAt),
-					new Date(),
-					{
-						includeSeconds: true
-					}
+					new Date()
 				);
 		},
 		formatArtists() {