Discover: fix filter's save done.
This commit is contained in:
@@ -294,7 +294,7 @@ export default defineStore('allMapDataStore', {
|
||||
|
||||
try {
|
||||
const response = await this.$axios.put(api, data);
|
||||
this.isUpdataFilter = response.data.is_modified;
|
||||
this.isUpdataFilter = response.status === 200;
|
||||
}catch(error) {
|
||||
this.httpStatus = error.request.status;
|
||||
await delay();
|
||||
|
||||
@@ -69,7 +69,7 @@ export default defineStore('filesStore', {
|
||||
o.parentLog = "-";
|
||||
o.fileType = "Log";
|
||||
o.ownerName = o.owner.name;
|
||||
o.updated_at = moment(o.updated_at).utcOffset('+08:00').format('YYYY-MM-DD HH:MM');
|
||||
o.updated_at = moment(o.updated_at).utcOffset('+08:00').format('YYYY-MM-DD HH:mm');
|
||||
o.accessed_at = o.accessed_at ? moment(o.accessed_at).utcOffset('+08:00').format('YYYY-MM-DD HH:mm') : null;
|
||||
return this.allEventLog
|
||||
})
|
||||
@@ -102,7 +102,7 @@ export default defineStore('filesStore', {
|
||||
o.parentLog = o.log.name;
|
||||
o.fileType = "Filter";
|
||||
o.ownerName = o.owner.name;
|
||||
o.updated_at = moment(o.updated_at).utcOffset('+08:00').format('YYYY-MM-DD HH:MM');
|
||||
o.updated_at = moment(o.updated_at).utcOffset('+08:00').format('YYYY-MM-DD HH:mm');
|
||||
o.accessed_at = o.accessed_at ? moment(o.accessed_at).utcOffset('+08:00').format('YYYY-MM-DD HH:mm') : null;
|
||||
});
|
||||
if(this.httpStatus < 300) loading.isLoading = false;
|
||||
|
||||
Reference in New Issue
Block a user