2121 <div class =" filter-container__ctrl" >
2222 <el-button
2323 class =" filter-item"
24- style =" margin-left : 10px ; "
24+ style =" margin-left : 10px "
2525 type =" primary"
2626 plain
2727 icon =" el-icon-edit"
5151 <el-table-column label =" 图片" align =" center" >
5252 <template slot-scope="{ row }">
5353 <el-popover placement =" right" width =" 230" trigger =" hover" >
54- <img :src =" row.pic" style =" width : 200px ; " />
55- <img :src =" row.pic" slot =" reference" style =" width : 40px ; " />
54+ <img :src =" row.pic" style =" width : 200px " />
55+ <img :src =" row.pic" slot =" reference" style =" width : 40px " />
5656 </el-popover >
5757 </template >
5858 </el-table-column >
@@ -192,13 +192,13 @@ export default {
192192 // 列表
193193 getList () {
194194 this .listLoading = true
195- fetchList (this .listQuery ).then (res => {
195+ fetchList (this .listQuery ).then (( res ) => {
196196 const { data = [], total = 0 } = res
197- this .list = data .map (v => {
197+ this .list = data .map (( v ) => {
198198 let pic = v .pic
199199
200200 if (pic) {
201- v .pic = baseHost + pic .replace (' public/' , ' / ' )
201+ v .pic = baseHost + pic .replace (' public/' , ' ' )
202202 }
203203
204204 return v
@@ -210,7 +210,7 @@ export default {
210210
211211 // 分类列表
212212 getCategory () {
213- fetchCategoryList ().then (res => {
213+ fetchCategoryList ().then (( res ) => {
214214 const { data = [] } = res
215215
216216 let listObject = listToObject (data)
@@ -236,7 +236,7 @@ export default {
236236 handleDelete (row ) {
237237 let ids = []
238238 if (Array .isArray (row)) {
239- ids = row .map (v => v .id )
239+ ids = row .map (( v ) => v .id )
240240 } else {
241241 ids .push (row .id )
242242 }
0 commit comments