|
@@ -478,6 +478,18 @@ export function setListSort(data, ok, no) {
|
|
|
$waiting.show()
|
|
|
return http.postJson(url, data, (result)=>{
|
|
|
$waiting.hide()
|
|
|
+ console.log(result);
|
|
|
+ // 处理旧版本时上传的素材没有新版本新加入的字段的问题
|
|
|
+ if (result && result.code === 0 && result.data.list) {
|
|
|
+ for (const item of result.data.list) {
|
|
|
+ if (item.dirId === null) {
|
|
|
+ item.dirId = 1
|
|
|
+ }
|
|
|
+ if (item.dirName === '') {
|
|
|
+ item.dirName = '根目录'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
return ok(result)
|
|
|
}, (err) => {
|
|
|
$waiting.hide()
|