Browse Source

fix: #9386,评测报告增加musicRenderType页面参数

TIANYONG 1 năm trước cách đây
mục cha
commit
4ceff9b0c6

+ 2 - 1
src/page-instrument/evaluat-model/index.tsx

@@ -3,7 +3,7 @@ import { connectWebsocket, evaluatingData, handleEndBegin, handleStartBegin, han
 import Earphone from "./earphone";
 import styles from "./index.module.less";
 import SoundEffect from "./sound-effect";
-import state, { handleRessetState } from "/src/state";
+import state, { handleRessetState, resetPlaybackToStart } from "/src/state";
 import { storeData } from "/src/store";
 import { browser } from "/src/utils";
 import { getNoteByMeasuresSlursStart } from "/src/helpers/formateMusic";
@@ -270,6 +270,7 @@ export default defineComponent({
         // 再来一次
         startBtnHandle()
       }
+      resetPlaybackToStart()
       evaluatingData.resulstMode = false;
     };
 

+ 1 - 1
src/view/evaluating/index.tsx

@@ -466,7 +466,7 @@ export const handleViewReport = (
 			url = location.origin + location.pathname + "report-share.html?id=" + id;
 			break;
 		case "instrument":
-			url = location.origin + location.pathname + "#/evaluat-report?id=" + id;
+			url = location.origin + location.pathname + "#/evaluat-report?id=" + id + "&musicRenderType=" + state.musicRenderType;
 			break;
 		default:
 			url = location.origin + location.pathname + "report-share.html?id=" + id;