Activity 1: Create Form Vue component
1.1 在您上周创建的项目( INITIALsurname-library(小写),例如 “ jhuang-library ”)的components文件夹中创建一个名为“ Form.vue ”的新组件,并使用以下样板代码对其进行初始化:
1.2 将组件 Form.vue 导入到主文件 App.vue 中,并在 template 标签之间引用,同时注释掉旧的 JSON 组件,如下所示:
1.3 Run the server with npm run dev to see the changes, as shown below: