【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,
'allowTemplateLiterals': true
}],
'semi': [2, 'never']
'semi': [2, 'never'],
'no-useless-escape': 1
}
}
+2 -2
View File
@@ -151,7 +151,7 @@ export default {
handleChangeSelect (value) {
var that = this
console.log(value)
if (value == 0) {
if (value === 0) {
that.dropList = '0'
that.show = true
} else {
@@ -163,7 +163,7 @@ export default {
if (value) {
var myreg = /^[1][3,4,5,7,8][0-9]{9}$/
if (!myreg.test(value)) {
callback('请输入正确的手机号')
callback(new Error('请输入正确的手机号'))
} else {
callback()
}
+1 -1
View File
@@ -42,7 +42,7 @@
</template>
<script>
import { putAction, getAction } from '@/api/manage'
import { getAction } from '@/api/manage'
export default {
name: 'Step3',
// components: {
+1 -1
View File
@@ -38,7 +38,7 @@ export default {
},
watch: {
time: function (newVal, oldVal) {
if (newVal == 0) {
if (newVal === 0) {
var params = {
username: this.userList.username
}