|
|
@@ -550,13 +550,15 @@ export default defineComponent({
|
|
|
var arr = i.thumbnail.split(',')
|
|
|
getImgUrl(arr[0], arr[1]).then(res => {
|
|
|
console.log("tup:", res)
|
|
|
- var name = res.match(/\/([^/]+)\?/)[1];
|
|
|
- data.fileList = [{
|
|
|
- uid: '1',
|
|
|
- name: name,
|
|
|
- status: 'done',
|
|
|
- url: res,
|
|
|
- }];
|
|
|
+ if(res){
|
|
|
+ var name = res.match(/\/([^/]+)\?/)[1];
|
|
|
+ data.fileList = [{
|
|
|
+ uid: '1',
|
|
|
+ name: name,
|
|
|
+ status: 'done',
|
|
|
+ url: res,
|
|
|
+ }];
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
@@ -582,7 +584,11 @@ export default defineComponent({
|
|
|
: '';
|
|
|
formState.coordinate = data.detail?.crs;
|
|
|
formState.searched = data.detail.searched == '0' ? false : true;
|
|
|
- formState.keywords = data?.detail?.keywords ? JSON.parse(data.detail?.keywords) : '';
|
|
|
+ try {
|
|
|
+ formState.keywords = data?.detail?.keywords ? JSON.parse(data.detail?.keywords) : '';
|
|
|
+ } catch (error) {
|
|
|
+ formState.keywords = data?.detail?.keywords || '';
|
|
|
+ }
|
|
|
formState.description = data.detail?.description;
|
|
|
formState.mapingurl = data.detail?.mapingurl;
|
|
|
formState.dataScope = data.detail?.dataScope;
|