|
@@ -16,7 +16,7 @@
|
|
|
|
|
|
<el-form-item class="panel-form-item" label="密码" prop="password" required>
|
|
|
<el-input autocomplete="off" readonly onfocus="this.removeAttribute('readonly');"
|
|
|
- v-model="form.password" :type="addPassFlag ? 'text' : 'password'" :maxlength="20"
|
|
|
+ v-model.trim="form.password" :type="addPassFlag ? 'text' : 'password'" :maxlength="20"
|
|
|
placeholder="请输入8-16位数字、字母大小写组合">
|
|
|
<template #suffix>
|
|
|
<span @click="addPassFlag = !addPassFlag" style="cursor: pointer;">
|
|
@@ -34,7 +34,7 @@
|
|
|
|
|
|
<el-form-item class="panel-form-item" label="密码确认" prop="confirmPwd" required>
|
|
|
<el-input autocomplete="off" readonly onfocus="this.removeAttribute('readonly');"
|
|
|
- v-model="form.confirmPwd" :type="addPassFlag1 ? 'text' : 'password'" :maxlength="20"
|
|
|
+ v-model.trim="form.confirmPwd" :type="addPassFlag1 ? 'text' : 'password'" :maxlength="20"
|
|
|
placeholder="输入再次输入密码">
|
|
|
<template #suffix>
|
|
|
<span @click="addPassFlag1 = !addPassFlag1" style="cursor: pointer;">
|