From 315aee6d78fb694e4215f10c13b27203fdb41c00 Mon Sep 17 00:00:00 2001 From: hanchaobo Date: Tue, 30 Apr 2024 14:23:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E8=AE=BF=E9=97=AE404,?= =?UTF-8?q?=E8=AF=81=E6=8D=AEdocx=E6=96=87=E4=BB=B6=E4=B8=8D=E5=85=81?= =?UTF-8?q?=E8=AE=B8=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/room.vue | 8 +++++--- vue.config.js | 8 ++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/views/room.vue b/src/views/room.vue index 5fa5ae45..837fa878 100644 --- a/src/views/room.vue +++ b/src/views/room.vue @@ -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"); } }, // 点击提交修改后的内容 diff --git a/vue.config.js b/vue.config.js index f6a9dc43..fd5d66e7 100644 --- a/vue.config.js +++ b/vue.config.js @@ -5,16 +5,16 @@ module.exports = defineConfig({ proxy: { '/tiaojie': { // target: 'https://api.xayunmei.com/tiaojieapitest', // 后端服务器地址 - target: 'http://172.16.1.26:6001', + target: 'http://121.40.189.20:6001', changeOrigin: true, // 是否改变Origin头信息 secure : false, pathRewrite: { '^/tiaojie': '' // 将/api前缀重写为空字符串 }, }, - '/tiaojiez': { - target: 'https://api.xayunmei.com/tiaojieapi', // 后端服务器地址 - // target: 'http://172.16.1.4:7001', + '/tiaojieprod': { + // target: 'https://api.xayunmei.com/tiaojieapi', // 后端服务器地址 + target: 'http://121.40.189.20:7001', changeOrigin: true, // 是否改变Origin头信息 secure : false, pathRewrite: { -- 2.54.0