【modify】修复ESLint的格式等问题

This commit is contained in:
zer0Black
2023-03-01 09:49:06 +08:00
parent 271b1f8c1e
commit 82ddb129c6
4 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -15,6 +15,7 @@ module.exports = {
'avoidEscape': true, 'avoidEscape': true,
'allowTemplateLiterals': true 'allowTemplateLiterals': true
}], }],
'semi': [2, 'never'] 'semi': [2, 'never'],
'no-useless-escape': 1
} }
} }
+2 -2
View File
@@ -151,7 +151,7 @@ export default {
handleChangeSelect (value) { handleChangeSelect (value) {
var that = this var that = this
console.log(value) console.log(value)
if (value == 0) { if (value === 0) {
that.dropList = '0' that.dropList = '0'
that.show = true that.show = true
} else { } else {
@@ -163,7 +163,7 @@ export default {
if (value) { if (value) {
var myreg = /^[1][3,4,5,7,8][0-9]{9}$/ var myreg = /^[1][3,4,5,7,8][0-9]{9}$/
if (!myreg.test(value)) { if (!myreg.test(value)) {
callback('请输入正确的手机号') callback(new Error('请输入正确的手机号'))
} else { } else {
callback() callback()
} }
+1 -1
View File
@@ -42,7 +42,7 @@
</template> </template>
<script> <script>
import { putAction, getAction } from '@/api/manage' import { getAction } from '@/api/manage'
export default { export default {
name: 'Step3', name: 'Step3',
// components: { // components: {
+1 -1
View File
@@ -38,7 +38,7 @@ export default {
}, },
watch: { watch: {
time: function (newVal, oldVal) { time: function (newVal, oldVal) {
if (newVal == 0) { if (newVal === 0) {
var params = { var params = {
username: this.userList.username username: this.userList.username
} }