Przeglądaj źródła

refactor(ChapterPanel): 移除重置书籍信息功能的实现代码

YourName 1 dzień temu
rodzic
commit
39651d7181
1 zmienionych plików z 14 dodań i 15 usunięć
  1. 14 15
      src/components/ChapterPanel.vue

+ 14 - 15
src/components/ChapterPanel.vue

@@ -127,7 +127,6 @@
           
           <el-form-item>
             <el-button type="primary" @click="saveBookInfo">保存书籍信息</el-button>
-            <el-button @click="resetBookInfo">重置</el-button>
           </el-form-item>
         </el-form>
       </div>
@@ -342,20 +341,20 @@ function saveBookInfo() {
   ElMessage.success('书籍信息保存成功');
 }
 
-function resetBookInfo() {
-  localBookInfo.value = {
-    title: '',
-    author: '',
-    language: 'zh-CN',
-    cover: '',
-    description: '',
-    identifier: '',
-    publisher: '',
-    publicationDate: '',
-    rights: ''
-  };
-  ElMessage.info('书籍信息已重置');
-}
+// function resetBookInfo() {
+//   localBookInfo.value = {
+//     title: '',
+//     author: '',
+//     language: 'zh-CN',
+//     cover: '',
+//     description: '',
+//     identifier: '',
+//     publisher: '',
+//     publicationDate: '',
+//     rights: ''
+//   };
+//   ElMessage.info('书籍信息已重置');
+// }
 
 // 封面上传相关功能
 function handleCoverChange(file) {