lex 2 vuotta sitten
vanhempi
commit
f517a8d46d
2 muutettua tiedostoa jossa 6 lisäystä ja 5 poistoa
  1. 4 3
      public/project/initiation.html
  2. 2 2
      vite.config.ts

+ 4 - 3
public/project/initiation.html

@@ -341,16 +341,17 @@
           var schoolDetail = await axios.post('/api-student/open/school/detail', {
             orchestraId: this.orchestraId
           })
-          if (schoolDetail.data.code === 200) {
+          if (schoolDetail.data.code === 200 && schoolDetail.data.data) {
             var schoolSystem = schoolDetail.data.data.schoolSystem || 'sixYearSystem'
             this.schoolId = schoolDetail.data.data.id
-            if (schoolDetail === 'sixYearSystem') {
+            if (schoolSystem === 'sixYearSystem') {
               this.currentGrade.push({ text: '六年级', value: 6 })
             }
           }
 
+
           var orchestraDetail = await axios.get('/api-student/open/orchestra/detail/' + this.orchestraId)
-          if (orchestraDetail.data.code === 200) {
+          if (orchestraDetail.data.code === 200 && orchestraDetail.data.data) {
             this.orchestraName = orchestraDetail.data.data.name || ''
           }
         } catch {

+ 2 - 2
vite.config.ts

@@ -12,9 +12,9 @@ function resolve(dir: string) {
 // https://vitejs.dev/config/
 // https://github.com/vitejs/vite/issues/1930 .env
 // const proxyUrl = 'https://mstutest.dayaedu.com/';
-// const proxyUrl = 'http://47.98.131.38:8989/'
+const proxyUrl = 'http://47.98.131.38:8989/'
 // const proxyUrl = 'http://192.168.3.143:8989/' // 尚科
-const proxyUrl = 'http://192.168.3.26:8989/' // 刘俊驰
+// const proxyUrl = 'http://192.168.3.26:8989/' // 刘俊驰
 export default defineConfig({
   base: './',
   plugins: [