Browse Source

修改传参

lex 8 months ago
parent
commit
f54792e8c9
2 changed files with 7 additions and 4 deletions
  1. 6 3
      src/teacher/music/upload/index.tsx
  2. 1 1
      vite.config.ts

+ 6 - 3
src/teacher/music/upload/index.tsx

@@ -102,7 +102,8 @@ export default defineComponent({
       messageTipTitle: '上传须知',
       messageTipType: 'upload' as 'upload' | 'error' | 'origin',
       cbsInstrumentList: [] as any,
-      tagList: [] as any
+      tagList: [] as any,
+      musicSheetAuthRecordId: null as any
     }
   },
   watch: {
@@ -133,7 +134,6 @@ export default defineComponent({
       appState.platformType === 'STUDENT' ? '/api-student' : '/api-teacher'
 
     request(prefix + '/MusicTag/tree').then((res: any) => {
-      console.log(res, 'res')
       this.tagList = res.data || []
     })
 
@@ -162,6 +162,9 @@ export default defineComponent({
           `/api-teacher/music/sheet/detail/${id}`
         )
 
+        this.musicSheetAuthRecordId = data.musicSheetAuthRecordId // 审核编号
+
+        console.log(this.musicSheetAuthRecordId)
         this.playMode = data.audioType || 'MP3'
         this.xmlFileUrl = data.xmlFileUrl
         this.name = data.musicSheetName
@@ -440,7 +443,7 @@ export default defineComponent({
           await request.post('/api-teacher/musicSheetAuthRecord/update', {
             data: {
               ...this.createSubmitData(),
-              id: this.$route.params.id
+              id: this.musicSheetAuthRecordId
             }
           })
         } else {

+ 1 - 1
vite.config.ts

@@ -12,7 +12,7 @@ function resolve(dir: string) {
 // https://vitejs.dev/config/
 // https://github.com/vitejs/vite/issues/1930 .env
 // const proxyUrl = 'https://online.colexiu.com/'
-const proxyUrl = 'https://test.colexiu.com/'
+const proxyUrl = 'https://dev.colexiu.com/'
 // const proxyUrl = 'http://192.168.3.14:8000/'
 export default defineConfig({
   base: './',