mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 19:35:24 +00:00
Fixed: Fix ESLint errors
This commit is contained in:
@@ -294,7 +294,8 @@ module.exports = {
|
||||
],
|
||||
skipIfMatch: [
|
||||
'http://[^s]*',
|
||||
'^[-\\w]+/[-\\w\\.]+$' // For import paths
|
||||
'^[-\\w]+/[-\\w\\.]+$',
|
||||
String.raw`^\/api\/[a-z0-9\/._-]+$`,
|
||||
],
|
||||
minLength: 3
|
||||
}
|
||||
|
||||
@@ -107,8 +107,8 @@ export default {
|
||||
const formatterArgs = value?.formatterArgs
|
||||
// console.log('>>> name: ', key)
|
||||
// console.log('>>> formatter: ', formatter)
|
||||
const detailFormaters = ['AmountFormatter', 'DetailFormatter']
|
||||
if (formatter && detailFormaters.includes(formatter.name) && formatterArgs.drawer !== false) {
|
||||
const detailFormatters = ['AmountFormatter', 'DetailFormatter']
|
||||
if (formatter && detailFormatters.includes(formatter.name) && formatterArgs.drawer !== false) {
|
||||
formatterArgs.onClick = this.onDetail
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user