Browse Source

feat: 获取声轨code修改

TIANYONG 1 month ago
parent
commit
f3fabc2247
2 changed files with 7 additions and 3 deletions
  1. 5 1
      src/state.ts
  2. 2 2
      vite.config.ts

+ 5 - 1
src/state.ts

@@ -1191,7 +1191,11 @@ const initInstrumentCode = async () => {
 }
 
 const getMusicInfo = async (res: any) => {
-  await initInstrumentCode()
+  try {
+    await initInstrumentCode()
+  } catch (error) {
+    // console.log(error)
+  }
   // 是否支持总谱
   state.isScoreRender = res.data?.isScoreRender
   // 是否默认显示总谱

+ 2 - 2
vite.config.ts

@@ -76,8 +76,8 @@ export default defineConfig({
         // target: "https://kt.colexiu.com",
         // target: "https://test.lexiaoya.cn",
         // target: "https://kt.colexiu.com",
-        // target: "https://test.resource.colexiu.com", // 内容平台开发环境,内容平台开发,需在url链接上加上isCbs=true
-        target: "https://dev.kt.colexiu.com",
+        target: "https://test.resource.colexiu.com", // 内容平台开发环境,内容平台开发,需在url链接上加上isCbs=true
+        // target: "https://dev.kt.colexiu.com",
         // target: "https://mec.colexiu.com",
         changeOrigin: true,
         rewrite: (path) => path.replace(/^\/instrument/, ""),