瀏覽代碼

fix:默认值

liushengqiang 2 年之前
父節點
當前提交
f6d1fbc9af

+ 4 - 1
src/page-instrument/App.tsx

@@ -3,7 +3,7 @@ import { computed, defineComponent, onBeforeMount, onMounted } from "vue";
 import { RouterView } from "vue-router";
 import TheError from "../components/The-error";
 import { setUserInfo, storeData } from "../store";
-import { getRandomKey, setBehaviorId, setToken } from "../utils";
+import { getRandomKey, getToken, setBehaviorId, setToken } from "../utils";
 import { getQuery } from "../utils/queryString";
 import Notfind from "../view/notfind";
 import { employeeQueryUserInfo, studentQueryUserInfo, teacherQueryUserInfo } from "./api";
@@ -31,6 +31,9 @@ export default defineComponent({
 			if (query.Authorization) {
 				setToken(query.Authorization);
 			}
+			if (!getToken()){
+				setToken('bearer 529d1359-20c6-4ea2-b2ba-2694cdeda8a4')
+			}
 			setUser();
 			setBehaviorId(getRandomKey())
 		});

+ 2 - 1
src/page-instrument/view-detail/index.tsx

@@ -145,7 +145,8 @@ export default defineComponent({
 
 		onMounted(() => {
 			(window as any).appName = "colexiu";
-			Promise.all([sysMusicScoreAccompanimentQueryPage(query.id)]).then((values) => {
+			const id = query.id || 43539;
+			Promise.all([sysMusicScoreAccompanimentQueryPage(id)]).then((values) => {
 				getMusicInfo(values[0]);
 			});
 			api_setEventTracking();

+ 8 - 8
src/utils/request.ts

@@ -57,14 +57,14 @@ request.interceptors.response.use(
 				// storeData.status = 'error'
 				showToast(msg);
 			}
-			if (data.code === 403) {
-				if (browserInfo.isApp) {
-					postMessage({ api: "login" });
-				} else {
-					storeData.status = "error";
-					showToast("登录过期");
-				}
-			}
+			// if (data.code === 403) {
+			// 	if (browserInfo.isApp) {
+			// 		postMessage({ api: "login" });
+			// 	} else {
+			// 		storeData.status = "error";
+			// 		showToast("登录过期");
+			// 	}
+			// }
 			throw new Error(msg);
 		}
 		return data;

+ 27 - 28
src/view/fingering/fingering-relationships.ts

@@ -289,34 +289,33 @@ const relationships = {
     58: [1, 2, 3],
   },
   piccolo: {
-    // 0: [1, 2, 3, 4, 5, 6, 7, 8, 11, 33, 77, 88],
-    72: [11, 2, 33, 4, 5, 6, 7, 8],
-    73: [11, 2, 33, 4, 5, 6, 7, 88],
-    74: [11, 2, 33, 4, 5, 6, 7],
-    75: [11, 2, 33, 4, 5, 6, 77],
-    76: [11, 2, 33, 4, 5, 6],
-    77: [11, 2, 33, 4, 5, 7, 8],
-    78: [11, 2, 33, 4, 6, 7],
-    79: [11, 2, 33, 4],
-    80: [11, 2, 33, 5, 6, 77],
-    81: [11, 2, 33,],
-    82: [[11, 2, 4, 5], [11, 3, 4, 5]],
-    83: [[11, 2], [11, 33, 4]],
-    84: [11, 33],
-    85: [[2, 33], [11]],
-    86: [33],
-    87: [33, 4, 5, 6, 77],
-    88: [1, 2, 33, 4, 5, 6],
-    89: [1, 2, 33, 4, 5, 77],
-    90: [1, 2, 33, 4, 6],
-    91: [1, 2, 33, 4],
-    92: [1, 2, 33, 5],
-    93: [1, 2, 33],
-    94: [1, 2, 33, 5, 6, 77],
-    95: [1, 2, 33, 5, 6, ],
-    96: [1, 2, 5, 6],
-    97: [1, 2, 3, 4, 5, 77, 88],
-    98: [1, 2, 4, 5, 77, 8],
+    62: [11, 2, 33, 4, 5, 6, 7, 8],
+    63: [11, 2, 33, 4, 5, 6, 7, 88],
+    64: [11, 2, 33, 4, 5, 6, 7],
+    65: [11, 2, 33, 4, 5, 6, 77],
+    66: [11, 2, 33, 4, 5, 6],
+    67: [11, 2, 33, 4, 5, 7, 8],
+    68: [11, 2, 33, 4, 6, 7],
+    69: [11, 2, 33, 4],
+    70: [11, 2, 33, 5, 6, 77],
+    71: [11, 2, 33,],
+    72: [[11, 2, 4, 5], [11, 3, 4, 5]],
+    73: [[11, 2], [11, 33, 4]],
+    74: [11, 33],
+    75: [[2, 33], [11]],
+    76: [33],
+    77: [33, 4, 5, 6, 77],
+    78: [1, 2, 33, 4, 5, 6],
+    79: [1, 2, 33, 4, 5, 77],
+    80: [1, 2, 33, 4, 6],
+    81: [1, 2, 33, 4],
+    82: [1, 2, 33, 5],
+    83: [1, 2, 33],
+    84: [1, 2, 33, 5, 6, 77],
+    85: [1, 2, 33, 5, 6, ],
+    86: [1, 2, 5, 6],
+    87: [1, 2, 3, 4, 5, 77, 88],
+    88: [1, 2, 4, 5, 77, 8],
   },
   "small-drum": {
     0: ['active', 'active-left', 'active-right'],

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

@@ -35,7 +35,7 @@ const handlePlay = (i: number, source: Howl | null) => {
 export const handleInitTick = (beatLengthInMilliseconds: number, beat: number) => {
 	tickData.state = "";
 	tickData.beatLengthInMilliseconds = beatLengthInMilliseconds
-	tickData.len = beat;
+	tickData.len = beat < 4 ? 4 : beat;
 };
 
 /** 开始节拍器 */