diff --git a/static_animationlist/js/main.js b/static_animationlist/js/main.js index ac7443f..cd93ed9 100644 --- a/static_animationlist/js/main.js +++ b/static_animationlist/js/main.js @@ -42,6 +42,10 @@ const options = { this.added_number = this.idList.length; }, confirmClick() { + if (this.idList.length == 0) { + ElMessage.error('请至少选择一部番剧') + return + } if (this.isMobile() && this.idList.length > 15) { this.overNum = true } else { @@ -89,4 +93,4 @@ const options = { const { loadModule } = window['vue3-sfc-loader']; const V = Vue.createApp(options); V.use(ElementPlus); -V.mount("#app"); \ No newline at end of file +V.mount("#app");