在上一篇结束后的基础上
1.在vue默认文件夹上的src/components/下新建一个login.vue
可以直接在components上右键选择Vue Component创建,没有该选项,就直接新建file,后缀名为vue即可
新建出的Login.vue内容为:
修改为
<template> <div> 账号:<input type="text" v-model="loginForm.username"/> </div> <div> 密码:<input type="text" v-model="loginForm.password"/> &l