Browse Source

更新合并

黄琪勇 7 months ago
parent
commit
2bc22fc607
3 changed files with 5 additions and 9 deletions
  1. 0 5
      instrument.html
  2. 5 3
      src/page-instrument/header-top/index.tsx
  3. 0 1
      vite.config.ts

+ 0 - 5
instrument.html

@@ -8,7 +8,6 @@
   <title>AI学练</title>
   <link rel="icon" href="/favicon.ico?v=1" />
   <script src="/flexible.js" charset="UTF-8"></script>
-  <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
   <style>
     #loading {
       position: fixed;
@@ -23,10 +22,6 @@
     }
   </style>
   <script>
-    // VConsole will be exported to `window.VConsole` by default.
-    // var vConsole = new window.VConsole();
-  </script>
-  <script>
     function _postMessage(data, callback) {
       const instance = window.COLEXIU || (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.COLEXIU)
       if (instance) {

+ 5 - 3
src/page-instrument/header-top/index.tsx

@@ -626,17 +626,19 @@ export default defineComponent({
               </div>
           }
           {/* 模式切换 */}
-            { 
+          { 
             state.playType === "play" &&
               <div 
                 id={state.platform === IPlatform.PC ? "teacherTop-0" : "studnetT-0"}
                 style={{ display: toggleBtn.value.display ? "" : "none" }}
                 class={["driver-9", styles.modeChangeBox, toggleBtn.value.disabled && styles.disabled]} 
                 onClick={() => {
-                  isMusicList.value && (musicListShow.value = true);
+                    handleRessetState();
+                    headTopData.modeType = "init";
                 }}
               >
-                <NoticeBar text={state.examSongName} background="none" />
+                <img class={styles.img} src={iconMode} />
+                <div class={styles.title}>{state.modeType==="practise" ? '练习模式' : state.modeType==="follow" ? "跟练模式" : state.modeType==="evaluating" ? "评测模式" : ""}</div>
               </div>
           }
           {/* 模式提醒 */}

+ 0 - 1
vite.config.ts

@@ -77,7 +77,6 @@ export default defineConfig({
         // target: "https://test.lexiaoya.cn",
         // target: "https://kt.colexiu.com",
         target: "https://dev.resource.colexiu.com", // 内容平台开发环境,内容平台开发,需在url链接上加上isCbs=true
-        //target: "https://dev.resource.colexiu.com",
         // target: "https://test.kt.colexiu.com",
         //target: "https://mec.colexiu.com",
         changeOrigin: true,