lex-wxl hace 9 horas
padre
commit
64658f5b1b

+ 3 - 2
dev-dist/sw.js

@@ -67,13 +67,14 @@ if (!self.define) {
     });
   };
 }
-define(['./workbox-16108a29'], (function (workbox) { 'use strict';
+define(['./workbox-5357ef54'], (function (workbox) { 'use strict';
 
   self.addEventListener('message', event => {
     if (event.data && event.data.type === 'SKIP_WAITING') {
       self.skipWaiting();
     }
   });
+  workbox.clientsClaim();
 
   /**
    * The precacheAndRoute() method efficiently caches and responds to
@@ -85,7 +86,7 @@ define(['./workbox-16108a29'], (function (workbox) { 'use strict';
     "revision": "3ca0b8505b4bec776b69afdba2768812"
   }, {
     "url": "index.html",
-    "revision": "0.dtujgcro8to"
+    "revision": "0.sjneatbel78"
   }], {});
   workbox.cleanupOutdatedCaches();
   workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {

+ 1 - 1
src/utils/contants.ts

@@ -23,8 +23,8 @@ export const instrument = {
  * @description: 资源类型
  */
 export const resourceType = {
-  MUSIC: '乐谱',
   IMG: '图片',
+  MUSIC: '乐谱',
   SONG: '音频',
   VIDEO: '视频',
   // PPT: 'PPT'

+ 1 - 1
src/views/natural-resources/index.tsx

@@ -11,7 +11,7 @@ export default defineComponent({
   name: 'student-studentList',
   setup() {
     const catchStore = useCatchStore();
-    const tab = ref('myResources');
+    const tab = ref('shareResources');
     onMounted(async () => {
       // eventGlobal.on('teacher-guideInfo', (name: string) => {
       //   if (name === 'natural-resources') {

+ 1 - 1
src/views/prepare-lessons/components/resource-main/components/resource-item/resource-search-group/index.tsx

@@ -27,7 +27,7 @@ export default defineComponent({
     const subjects = ref('');
     const materials = ref('')
     const forms = reactive({
-      type: 'MUSIC', //
+      type: 'IMG', //
       name: '',
       bookVersionId: null as any,
       subjectId: null as any,

+ 1 - 1
src/views/prepare-lessons/model/select-resources/select-item/index.tsx

@@ -70,7 +70,7 @@ export default defineComponent({
         rows: 20
       },
       searchGroup: {
-        type: 'MUSIC', //
+        type: 'IMG', //
         name: '',
         materialTagId: null,
         bookVersionId: null,

+ 1 - 1
src/views/prepare-lessons/model/select-resources/select-item/resource-search-group/index.tsx

@@ -166,7 +166,7 @@ export default defineComponent({
     const subjectId = toRef(props.subjectId);
     const catchStore = useCatchStore();
     const forms = reactive({
-      type: 'MUSIC', //
+      type: 'IMG', //
       name: '',
       subjectId: subjectId.value as any,
       // grade: null as any,