zhengnaiwen_citu 2 miesięcy temu
rodzic
commit
1a88f7686d
2 zmienionych plików z 1 dodań i 19 usunięć
  1. 1 1
      src/views/home/components/featureModule.vue
  2. 0 18
      vue.config.js

+ 1 - 1
src/views/home/components/featureModule.vue

@@ -66,7 +66,7 @@ import MCard from '@/components/MCard'
 import { loadDynamicComponents } from '@/utils'
 import draggable from 'vuedraggable'
 
-const vueComponent = require.context('../dynamic', true, /\.vue$/)
+const vueComponent = require.context('./dynamic', true, /\.vue$/)
 const autoComponent = loadDynamicComponents(vueComponent)
 
 export default {

+ 0 - 18
vue.config.js

@@ -92,24 +92,6 @@ module.exports = defineConfig({
         return options
       })
     })
-    // config.plugin('generate-version-file').use({
-    //   apply: (compiler) => {
-    //     // 生成当前时间戳
-    //     // const timestamp = Date.now()
-
-    //     // 构造 version.json 内容
-
-    //     const versionData = {
-    //       version: Timestamp
-    //     }
-
-    //     // 写入 version.json 文件
-    //     if (process.env.NODE_ENV === 'production') {
-    //       fs.writeFileSync('./public/version.json', JSON.stringify(versionData, null, 2))
-    //     }
-    //   }
-    // })
-    // config.output.chunkFilename('js/[name].[contenthash].js').end()
   },
   // babel-loader 是否处理 node_modules 中的依赖包,处理哪些依赖包,参数类型: boolean | Array<string | RegExp>
   transpileDependencies: [