|
@@ -260,12 +260,12 @@ export default {
|
|
|
return this.fileUrl;
|
|
|
},
|
|
|
},
|
|
|
- mounted() {
|
|
|
+ mounted() {
|
|
|
console.log(this.isWord);
|
|
|
if (this.fileType === "txt") {
|
|
|
this.loadTextContent();
|
|
|
- } else if (this.isWord) {
|
|
|
- this.loadWordContent();
|
|
|
+ } else if (this.$route.query.type == "docx") {
|
|
|
+ this.loadWordContent();
|
|
|
} else if (this.$route.query.type == "xlsx") {
|
|
|
this.loadExcelContent();
|
|
|
}
|