Tang 2 years ago
parent
commit
0b448ea671

+ 1 - 1
build/webpack.base.conf.js

@@ -17,7 +17,7 @@ module.exports = {
   },
   output: {
     path: config.build.assetsRoot,
-    filename: '[name].js',
+    filename: '[name].[hash].js',
     publicPath: process.env.NODE_ENV === 'production'
       ? config.build.assetsPublicPath
       : config.dev.assetsPublicPath

+ 2 - 2
build/webpack.prod.conf.js

@@ -46,8 +46,8 @@ const webpackConfig = merge(baseWebpackConfig, {
   devtool: config.build.productionSourceMap ? config.build.devtool : false,
   output: {
     path: config.build.assetsRoot,
-    filename: utils.assetsPath('js/[name].[chunkhash].js'),
-    chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
+    filename: utils.assetsPath('js/[name].[hash].js'),
+    chunkFilename: utils.assetsPath('js/[id].[hash].js')
   },
   plugins: [
     // http://vuejs.github.io/vue-loader/en/workflow/production.html

+ 4 - 5
src/pages/course-detail/components/CourseTree.vue

@@ -921,11 +921,10 @@ export default {
       return this.backNextItem(nextItem, nextItem.menuType, isNext);
     },
     async getResource(section, type, courseIndex) {
-      console.error(section, "section");
-      // if (section.doType != 1 && section.learning == 1 && section.type == 2) {
-      //   this.$message.warning("考试已通过,请勿重复考试");
-      //   return false;
-      // }
+      if (section.doType != 1 && section.learning == 1 && section.type == 2) {
+        this.$message.warning("考试已通过,请勿重复考试");
+        return false;
+      }
       if (
         section.type != 2 &&
         this.isActive(section) &&

+ 1 - 0
src/pages/course-exam/index.vue

@@ -1721,6 +1721,7 @@ export default {
           showClose: false
         }
       ).then(() => {
+        this.mustBack = true
         this.$router.go(-1);
       });
     },

File diff suppressed because it is too large
+ 164 - 175
src/pages/live-detail/index.vue


Some files were not shown because too many files changed in this diff