【fix ESLint】src/views/system/modules
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user