|
@@ -1,4 +1,4 @@
|
|
|
-import { Transition, computed, defineComponent, onMounted, onUnmounted, reactive, ref } from "vue";
|
|
|
+import { Transition, computed, defineComponent, onMounted, onUnmounted, reactive, ref, watch } from "vue";
|
|
|
import styles from "./index.module.less";
|
|
|
|
|
|
import iconBack from "./image/icon-back.svg";
|
|
@@ -26,6 +26,7 @@ import TeacherTop from "../custom-plugins/guide-page/teacher-top";
|
|
|
import StudentTop from "../custom-plugins/guide-page/student-top";
|
|
|
import { HANDLE_WORK_ADD } from "../custom-plugins/work-index";
|
|
|
import { browser } from "/src/utils";
|
|
|
+import store from "store";
|
|
|
|
|
|
/** 头部数据和方法 */
|
|
|
export const headTopData = reactive({
|
|
@@ -298,6 +299,12 @@ export default defineComponent({
|
|
|
window.removeEventListener("message", changePlay);
|
|
|
});
|
|
|
|
|
|
+ // 设置改变触发
|
|
|
+ watch(state.setting, () => {
|
|
|
+ console.log(state.setting, "state.setting")
|
|
|
+ store.set("musicscoresetting", state.setting);
|
|
|
+ });
|
|
|
+
|
|
|
return () => (
|
|
|
<>
|
|
|
<div class={[styles.headerTop]}>
|