liushengqiang 1 year ago
parent
commit
1d9b610839

+ 1 - 1
dev-dist/sw.js

@@ -82,7 +82,7 @@ define(['./workbox-ab7aa862'], (function (workbox) { 'use strict';
     "revision": "3ca0b8505b4bec776b69afdba2768812"
   }, {
     "url": "index.html",
-    "revision": "0.h3pd2134s4o"
+    "revision": "0.1g4qono9b58"
   }], {});
   workbox.cleanupOutdatedCaches();
   workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {

BIN
src/components/layout/images/icon_1_1.png


BIN
src/components/layout/images/icon_1_2.png


+ 11 - 8
src/components/layout/layoutSilder.tsx

@@ -19,6 +19,8 @@ import studentNormal from './images/studentNormal.png';
 import dataIcon from './images/dataIcon.png'
 import dataNormal from './images/dataNormal.png'
 import SilderItem from './modals/silderItem';
+import icon_1_1 from './images/icon_1_1.png';
+import icon_1_2 from './images/icon_1_2.png';
 import { onBeforeRouteUpdate, useRoute, useRouter } from 'vue-router';
 export default defineComponent({
   name: 'layoutSilder',
@@ -67,6 +69,14 @@ export default defineComponent({
         path: '/prepare-lessons'
       },
       {
+        activeIcon: icon_1_1,
+        name: '制谱',
+        normalIcon: icon_1_2,
+        isActive: false,
+        id: 8,
+        path: '/notation'
+      },
+      {
         activeIcon: kuIcon,
         name: '小酷AI',
         normalIcon: kuNormal,
@@ -91,14 +101,7 @@ export default defineComponent({
         id: 7,
         path: '/data-module'
       },
-      {
-        activeIcon: setIcon,
-        name: '创作',
-        normalIcon: setNormal,
-        isActive: false,
-        id: 8,
-        path: '/notation'
-      }
+      
       // {
       //   activeIcon: setIcon,
       //   name: '设置',

+ 1 - 1
src/router/routes/index.ts

@@ -145,7 +145,7 @@ export const constantRoutes: RouteRecordRaw[] = [
         name: 'notation',
         component: () => import('@/views/notation/index'),
         meta: {
-          title: '创作'
+          title: '制谱'
         }
       }
     ]

+ 5 - 1
src/views/notation/index.tsx

@@ -9,7 +9,11 @@ export default defineComponent({
     const Authorization = userStore.getToken || '';
     console.log(Authorization);
     const data = reactive({
-      src: `${location.origin}/notation/#/create?Authorization=${Authorization}`
+      src: `${
+        /(192|localhost)/.test(location.origin)
+          ? 'https://test.lexiaoya.cn'
+          : location.origin
+      }/notation/#/create?Authorization=${Authorization}`
       //   src: `http://localhost:3050/#/create?Authorization=${Authorization}`
     });
     const handleOpen = (e: MessageEvent) => {