Router: change /Discover to /Discover/map/type/filterId
This commit is contained in:
@@ -132,18 +132,20 @@
|
||||
* @param {object} file
|
||||
*/
|
||||
enterDiscover(file){
|
||||
let logId;
|
||||
let filterId;
|
||||
let type;
|
||||
let fileId;
|
||||
|
||||
if(file.fileType === 'Log'){
|
||||
this.createFilterId = null;
|
||||
logId = file.id;
|
||||
this.$router.push({name: 'DiscoverLog', params: { logId: logId }})
|
||||
fileId = file.id;
|
||||
type = 'log';
|
||||
this.$router.push({name: 'Map', params: { type: type, fileId: fileId }})
|
||||
}
|
||||
else if(file.fileType === 'Filter') {
|
||||
this.createFilterId = file.id;
|
||||
filterId = file.id;
|
||||
this.$router.push({name: 'DiscoverFilter', params: { filterId: filterId }})
|
||||
fileId = file.id;
|
||||
type = 'filter';
|
||||
this.$router.push({name: 'Map', params: { type: type, fileId: fileId }})
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user