Browse Source

修改选择学课报错问题

limengbo 4 năm trước cách đây
mục cha
commit
0df8b2292b
2 tập tin đã thay đổi với 18 bổ sung16 xóa
  1. 2 1
      build/webpack.dev.conf.js
  2. 16 15
      src/pages/skill/Skill.vue

+ 2 - 1
build/webpack.dev.conf.js

@@ -42,7 +42,8 @@ module.exports = merge(baseConfig, {
   devServer: {
     contentBase: path.resolve(__dirname, '../dist'), //告诉服务其从哪提供内容
     hot: true,
-    open: true
+    open: true,
+    host: '192.168.1.128'
   },
   plugins: [
     new webpack.HotModuleReplacementPlugin(), // 开启热更新

+ 16 - 15
src/pages/skill/Skill.vue

@@ -549,21 +549,22 @@ export default {
     },
     skillChange(val) {
       this.skillParams.classId = ''
-      if (val === 0) {
-        getBaiduCourseList('CHINESE').then(res => {
-          this.baiduCourseList = [{
-            fullName: '全部',
-            id: 100
-          }, ...res.data]
-        })
-      } else if (val === 3) {
-        getBaiduCourseList('MATH').then(res => {
-           this.baiduCourseList = [{
-            fullName: '全部',
-            id: 101
-          }, ...res.data]
-        })
-      }
+      console.log(val)
+      // if (val === 0) {
+      //   getBaiduCourseList('CHINESE').then(res => {
+      //     this.baiduCourseList = [{
+      //       fullName: '全部',
+      //       id: 100
+      //     }, ...res.data]
+      //   })
+      // } else if (val === 3) {
+      //   getBaiduCourseList('MATH').then(res => {
+      //      this.baiduCourseList = [{
+      //       fullName: '全部',
+      //       id: 101
+      //     }, ...res.data]
+      //   })
+      // }
     },
     columnZero() {
       return "0";