fix: 修复文件URL处理并临时禁用权限检查

- 恢复文件URL路径前自动添加斜杠的功能
- 临时注释掉大屏设计和运行页面的权限检查逻辑
- 临时注释掉画布背景颜色的动态设置
This commit is contained in:
砂糖
2025-11-10 16:11:09 +08:00
parent e795936f66
commit 1fd03fe959
3 changed files with 13 additions and 13 deletions

View File

@@ -261,12 +261,12 @@ export default {
}, },
// 判断页面权限 // 判断页面权限
permission() { permission() {
this.$dataRoomAxios.get(`/bigScreen/permission/check/${this.pageCode}`).then(res => { // this.$dataRoomAxios.get(`/bigScreen/permission/check/${this.pageCode}`).then(res => {
this.hasPermission = res this.hasPermission = res
if (res) { // if (res) {
this.init() this.init()
} // }
}) // })
}, },
// 添加资源弹窗初始化 // 添加资源弹窗初始化
initDialog() { initDialog() {

View File

@@ -76,7 +76,7 @@ export default {
// 画布样式 // 画布样式
canvasStyle() { canvasStyle() {
return { 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)`, transform: `scale(${this.scale}) translate(${this.translateX}px, ${this.translateY}px)`,
transformOrigin: '0 0' transformOrigin: '0 0'
}; };
@@ -279,12 +279,12 @@ export default {
}) })
}, },
permission() { permission() {
this.$dataRoomAxios.get(`/bigScreen/permission/check/${this.pageCode}`).then(res => { // this.$dataRoomAxios.get(`/bigScreen/permission/check/${this.pageCode}`).then(res => {
this.hasPermission = res this.hasPermission = true
if (res) { // if (res) {
this.init() this.init()
} // }
}) // })
}, },
init() { init() {
if (!this.pageCode) { return } if (!this.pageCode) { return }

View File

@@ -8,9 +8,9 @@ function getFileUrl(url){
return url return url
} }
// 如果没有以/开头的加上/ // 如果没有以/开头的加上/
// if (!/^\//.test(url)) { if (!/^\//.test(url)) {
// url = `/${url}` url = `/${url}`
// } }
// return `${window.BS_CONFIG?.httpConfigs?.fileUrlPrefix}${url}` // return `${window.BS_CONFIG?.httpConfigs?.fileUrlPrefix}${url}`
return `http://49.232.154.205:10900${url}` return `http://49.232.154.205:10900${url}`
} }