Procházet zdrojové kódy

feat:更新课程页面路由,新增单个课程全局组件

茫茫燃 před 4 roky
rodič
revize
4fbbf4cdc9
6 změnil soubory, kde provedl 0 přidání a 65 odebrání
  1. 0 2
      .env 2.development
  2. 0 2
      .env 2.production
  3. 0 14
      babel.config 2.js
  4. 0 3
      src/App 2.vue
  5. 0 10
      src/main 2.js
  6. 0 34
      vue.config 2.js

+ 0 - 2
.env 2.development

@@ -1,2 +0,0 @@
-NODE_ENV = 'development'
-VUE_APP_MODE = 'development'

+ 0 - 2
.env 2.production

@@ -1,2 +0,0 @@
-NODE_ENV = 'production'
-VUE_APP_MODE = 'production'

+ 0 - 14
babel.config 2.js

@@ -1,14 +0,0 @@
-module.exports = {
-  plugins: [
-    [
-      'import',
-      {
-        libraryName: 'element-plus',
-        customStyleName: (name) => {
-          return `element-plus/lib/theme-chalk/${name}.css`;
-        }
-      }
-    ]
-  ],
-  presets: ['@vue/cli-plugin-babel/preset']
-};

+ 0 - 3
src/App 2.vue

@@ -1,3 +0,0 @@
-<template>
-  <router-view/>
-</template>

+ 0 - 10
src/main 2.js

@@ -1,10 +0,0 @@
-import { createApp } from 'vue';
-import { globalComponentRegister } from './global';
-import App from './App.vue';
-import router from './router';
-import store from './store';
-import api from "@/api";
-
-const app = createApp(App).use(store).use(router).use(globalComponentRegister);
-app.config.globalProperties.$api = api;
-app.mount('#app');

+ 0 - 34
vue.config 2.js

@@ -1,34 +0,0 @@
-const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");
-const SpeedMeasurePlugin = require("speed-measure-webpack-plugin");
-const WebpackBar = require("webpackbar");
-const smp = new SpeedMeasurePlugin();
-
-module.exports = {
-  productionSourceMap: false,
-  publicPath: process.env.BASE_URL,
-  chainWebpack: config => {
-    config
-      .plugin('html')
-      .tap(args => {
-        // NOTE 确定系统正式名称
-        args[0].title = 'SEEC门户系统';
-        return args;
-      });
-  },
-  configureWebpack: smp.wrap({
-    devServer: {
-      // proxy: {
-      //   "/api": {
-      //     target: "http://127.0.0.1:8080",
-      //     changeOrigin: true,
-      //   }
-      // },
-      // port: 8000,
-    },
-    plugins: process.env.NODE_ENV === "development" ?
-      [
-        new WebpackBar(),
-        new BundleAnalyzerPlugin(),
-      ] : []
-  }),
-};