<!-- 用户名取消自动填充 autocomplete="off" --> <el-form-item label="用户名" prop="username"> <el-input autocomplete="off" v-model="formAdd.username" clearable></el-input> </el-form-item> <!-- 密码取消自动填充 autocomplete="new-password" --> <el-form-item label="密码" prop="password"> <el-input autocomplete="new-password" type="password" v-model="formAdd.password" clearable></el-input> </el-form-item>