【fix ESLint】src/views/system/modules

This commit is contained in:
danshihao
2023-03-07 14:23:25 +08:00
parent 0e41300963
commit 9e05297813
33 changed files with 179 additions and 183 deletions
@@ -58,13 +58,16 @@ export default {
try {
const json = JSON.parse(value)
if (json instanceof Array) {
// eslint-disable-next-line standard/no-callback-literal
callback('只能传递JSON对象不能传递JSON数组')
} else if (json instanceof Object) {
callback()
} else {
// eslint-disable-next-line standard/no-callback-literal
callback('请输入JSON字符串')
}
} catch {
// eslint-disable-next-line standard/no-callback-literal
callback('请输入JSON字符串')
}
}
@@ -101,7 +104,7 @@ export default {
handleOk () {
const that = this
// 触发表单验证
this.$refs.form.validate((ok, err) => {
this.$refs.form.validate((ok) => {
if (ok) {
that.confirmLoading = true
let httpUrl = this.url.add; let method = 'post'