فهرست منبع

秒极客曲目声轨调整

yuanliang 11 ماه پیش
والد
کامیت
e6d58ba5bc
2فایلهای تغییر یافته به همراه13 افزوده شده و 10 حذف شده
  1. 11 8
      src/views/music-library/music-sheet/modal/music-operationV2.tsx
  2. 2 2
      vite.config.ts

+ 11 - 8
src/views/music-library/music-sheet/modal/music-operationV2.tsx

@@ -600,7 +600,6 @@ export default defineComponent({
     // 上传XML,初始化音轨 音轨速度 乐器、声部
     const readFileInputEventAsArrayBuffer = (file: any) => {
       // 是否是evxml
-      forms.isEvxml = file?.name?.includes('.evxml') ? true : false;
       const xmlRead = new FileReader()
       xmlRead.onload = (res) => {
         try {
@@ -769,18 +768,22 @@ export default defineComponent({
       let partListNames = Array.from(partList).map((item: any) => {
         let part = item.getElementsByTagName('part-name')?.[0]
         // evxml没有分轨,需要手动设置一个默认的名称,用于上传原音
-        // if (forms.isEvxml) {
-        //   part = part || 'noPartName'
-        // }
-        // 优先解析声轨,没有就取id值
         let track = ''
-        if (part) {
-          track = part.textContent || ''
-        } else {
+        if (forms.isEvxml) { // 秒极客曲目,取ID
           let id = item.getAttribute('id')
           if (id) {
             track = id
           }
+        } else {
+          // 优先解析声轨,没有就取id值
+          if (part) {
+            track = part.textContent || ''
+          } else {
+            let id = item.getAttribute('id')
+            if (id) {
+              track = id
+            }
+          }
         }
         return {
           value: track.trim(),

+ 2 - 2
vite.config.ts

@@ -19,9 +19,9 @@ function pathResolve(dir: string) {
 }
 
 // const proxyUrl = 'https://dev.lexiaoya.cn'
-const proxyUrl = 'http://127.0.0.1:7293/'
+// const proxyUrl = 'http://127.0.0.1:7293/'
 // const proxyUrl = 'https://resource.colexiu.com/'
-// const proxyUrl = 'https://dev.resource.colexiu.com'
+const proxyUrl = 'https://dev.resource.colexiu.com'
 // https://test.resource.colexiu.com/
 
 export default ({ command, mode }: ConfigEnv): UserConfig => {