Open file preview in new windows
This commit is contained in:
parent
a09dfa8d9f
commit
8ee4d63622
@ -242,8 +242,10 @@ export default {
|
||||
this.addSelected(this.index);
|
||||
},
|
||||
open: function () {
|
||||
this.$router.push({ path: this.url });
|
||||
},
|
||||
// this.$router.push({ path: this.url });
|
||||
const routeData = this.$router.resolve({ path: this.url });
|
||||
window.open(routeData.href);
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
@ -344,8 +344,9 @@ export default {
|
||||
close() {
|
||||
this.$store.commit("updateRequest", {});
|
||||
|
||||
let uri = url.removeLastDir(this.$route.path) + "/";
|
||||
this.$router.push({ path: uri });
|
||||
// let uri = url.removeLastDir(this.$route.path) + "/";
|
||||
// this.$router.push({ path: uri });
|
||||
window.close();
|
||||
},
|
||||
download() {
|
||||
window.open(this.downloadUrl);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user