eslint 修复

This commit is contained in:
fengachen
2021-09-03 20:06:59 +08:00
parent 99a46dc673
commit c6d77da29d
21 changed files with 31 additions and 43 deletions
-2
View File
@@ -5,7 +5,6 @@
*/
import {ajaxGetDictItems,getDictItemsFromCache} from '@/api/api'
import {getAction} from '@/api/manage'
/**
* 获取字典数组
@@ -137,7 +136,6 @@ export async function getDictItems(dictCode, params) {
console.log('------- 从DB中获取到了字典-------dictCode : ', dictCode, res)
return Promise.resolve(res)
} else {
console.error('getDictItems error: : ', res)
return Promise.resolve([])
}
}).catch((res) => {
+2 -3
View File
@@ -87,7 +87,6 @@
computed: {
//透传给下级组件的事件,需要排除本组件使用的change事件
childListeners() {
const vm = this
let result = Object.assign({},
this.$listeners,
)
@@ -97,7 +96,7 @@
},
watch:{
value: {
handler(val,oldValue) {
handler(val) {
if (val instanceof Array) {
this.initFileList(val.join(','))
} else {
@@ -207,7 +206,7 @@
}
this.$emit('change', path)
},
handleDelete(file){
handleDelete(){
//如有需要新增 删除逻辑
},
handleCancel() {