소스 검색

fix: 修复资源下载出现服务器异常问题

wu.jian2 1 년 전
부모
커밋
da2f929ae2
2개의 변경된 파일8개의 추가작업 그리고 6개의 파일을 삭제
  1. 7 5
      data-room-ui/packages/Layout/BigScreenHomeLayout/index.vue
  2. 1 1
      data-room-ui/packages/SourceList/index.vue

+ 7 - 5
data-room-ui/packages/Layout/BigScreenHomeLayout/index.vue

@@ -39,7 +39,7 @@ export default {
   },
   computed: {
     title () {
-       if (this.$route.query.edit) return '大屏设计器'
+      if (this.$route.query.edit) return '大屏设计器'
       return window?.BS_CONFIG?.starter?.title
     },
     logo () {
@@ -112,10 +112,10 @@ export default {
           path: tab.path,
           query: { edit: 1 }
         })
-      }else{
-      this.$router.push({
-        path: tab.path
-      })
+      } else {
+        this.$router.push({
+          path: tab.path
+        })
       }
     }
   }
@@ -140,6 +140,8 @@ export default {
     background-position: center right;
 
     .logo-title {
+      // 禁用可选
+      user-select: none;
       font-size: 30px;
       position: absolute;
       z-index: 23;

+ 1 - 1
data-room-ui/packages/SourceList/index.vue

@@ -280,7 +280,7 @@ export default {
       window.open(screen.url, '_blank')
     },
     downLoad (screen) {
-      this.$dataRoomAxios.download(`/bigScreen/file/download/${screen.id}`, true)
+      this.$dataRoomAxios.download(`/bigScreen/file/download/${screen.id}`)
     },
     del (screen) {
       this.$confirm('确定删除该资源?', '提示', {