From 1fd03fe959b9be11ec9f084d70b494fc319f07eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Mon, 10 Nov 2025 16:11:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6URL?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=B9=B6=E4=B8=B4=E6=97=B6=E7=A6=81=E7=94=A8?= =?UTF-8?q?=E6=9D=83=E9=99=90=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 恢复文件URL路径前自动添加斜杠的功能 - 临时注释掉大屏设计和运行页面的权限检查逻辑 - 临时注释掉画布背景颜色的动态设置 --- frontend/packages/BigScreenDesign/index.vue | 8 ++++---- frontend/packages/BigScreenRun/index.vue | 12 ++++++------ frontend/packages/js/utils/file.js | 6 +++--- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/frontend/packages/BigScreenDesign/index.vue b/frontend/packages/BigScreenDesign/index.vue index f242e11..b270331 100644 --- a/frontend/packages/BigScreenDesign/index.vue +++ b/frontend/packages/BigScreenDesign/index.vue @@ -261,12 +261,12 @@ export default { }, // 判断页面权限 permission() { - this.$dataRoomAxios.get(`/bigScreen/permission/check/${this.pageCode}`).then(res => { + // this.$dataRoomAxios.get(`/bigScreen/permission/check/${this.pageCode}`).then(res => { this.hasPermission = res - if (res) { + // if (res) { this.init() - } - }) + // } + // }) }, // 添加资源弹窗初始化 initDialog() { diff --git a/frontend/packages/BigScreenRun/index.vue b/frontend/packages/BigScreenRun/index.vue index d94eb1c..479a9f2 100644 --- a/frontend/packages/BigScreenRun/index.vue +++ b/frontend/packages/BigScreenRun/index.vue @@ -76,7 +76,7 @@ export default { // 画布样式 canvasStyle() { return { - backgroundColor: this.fitPageConfig.customTheme === 'light' ? this.fitPageConfig.lightBgColor : this.fitPageConfig.bgColor, + // backgroundColor: this.fitPageConfig.customTheme === 'light' ? this.fitPageConfig.lightBgColor : this.fitPageConfig.bgColor, transform: `scale(${this.scale}) translate(${this.translateX}px, ${this.translateY}px)`, transformOrigin: '0 0' }; @@ -279,12 +279,12 @@ export default { }) }, permission() { - this.$dataRoomAxios.get(`/bigScreen/permission/check/${this.pageCode}`).then(res => { - this.hasPermission = res - if (res) { + // this.$dataRoomAxios.get(`/bigScreen/permission/check/${this.pageCode}`).then(res => { + this.hasPermission = true + // if (res) { this.init() - } - }) + // } + // }) }, init() { if (!this.pageCode) { return } diff --git a/frontend/packages/js/utils/file.js b/frontend/packages/js/utils/file.js index 3f98a1c..3609811 100644 --- a/frontend/packages/js/utils/file.js +++ b/frontend/packages/js/utils/file.js @@ -8,9 +8,9 @@ function getFileUrl(url){ return url } // 如果没有以/开头的加上/ - // if (!/^\//.test(url)) { - // url = `/${url}` - // } + if (!/^\//.test(url)) { + url = `/${url}` + } // return `${window.BS_CONFIG?.httpConfigs?.fileUrlPrefix}${url}` return `http://49.232.154.205:10900${url}` }