文件访问404,证据docx文件不允许编辑

This commit is contained in:
hanchaobo
2024-04-30 14:23:02 +08:00
parent 0b08bd1c07
commit 315aee6d78
2 changed files with 9 additions and 7 deletions
+5 -3
View File
@@ -299,6 +299,7 @@ export default {
filedata3: {
annexType: 7,
officeFlag: 0,
isMediaBook:1,
caseId: null,
},
fileList3: [],
@@ -433,14 +434,15 @@ export default {
this.$refs.upload3.clearFiles();
this.selectByIdFn(this.caseId);
},
preview(item, flag) {
preview(item, type) {
if (item.onlyOfficeFileId) {
debugger
// this.$router.push({
// path: "/onlyoffice",
// query: { id: item.onlyOfficeFileId, flag: flag },
// });
let flag = 1;
if (this.editFlag) {
if (this.editFlag && type != 0) {
flag = 1;
} else {
flag = 0;
@@ -453,7 +455,7 @@ export default {
"_black"
);
} else {
window.open(window.location.origin + item.annexPath, "_black");
window.open(window.location.origin + '/tiaojie' + item.annexPath, "_black");
}
},
// 点击提交修改后的内容