소스 검색

Merge branch 'develop' into online

yuanliang 1 년 전
부모
커밋
7e98c51b9a
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      src/views/music-library/musicUtil.ts

+ 2 - 4
src/views/music-library/musicUtil.ts

@@ -2,8 +2,8 @@ import {getMapValueByKey} from "@/utils/objectUtil";
 import {clientType,} from "@/utils/constant";
 
 export const getOwnerName = (musicSheetExtend: any, sourceType: string) => {
-  if (musicSheetExtend == 'PLATFORM') {
-    return;
+  if (sourceType == 'PLATFORM') {
+    return "--"
   }
   let ownerName = '';
 
@@ -19,8 +19,6 @@ export const getOwnerName = (musicSheetExtend: any, sourceType: string) => {
       let typeName = getMapValueByKey(musicSheetExtend.clientType, new Map(Object.entries(clientType)));
       typeName = typeName ? '-' + typeName : '';
       ownerName += ' (' + appName + typeName + ')'
-    }else if(sourceType == 'PLATFORM'){
-      return "--"
     }
   }
   return ownerName;