From d0d825e09ffdb95e9c4edcc44eeff08c4b2a9c23 Mon Sep 17 00:00:00 2001 From: luohairen <3399054449@qq.com> Date: 星期四, 07 十一月 2024 15:53:22 +0800 Subject: [PATCH] 完成教师端,考试列表展示 --- vue.config.js | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/vue.config.js b/vue.config.js index 43e9f92..7978686 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,8 +1,8 @@ -'use strict' -const path = require('path') +'use strict'; +const path = require('path'); -function resolve (dir) { - return path.join(__dirname, dir) +function resolve(dir) { + return path.join(__dirname, dir); } module.exports = { @@ -20,6 +20,7 @@ proxy: { '/api': { target: 'http://localhost:8000', + // target: 'http://192.168.3.64:8000', changeOrigin: true } } @@ -31,12 +32,12 @@ filename: 'index.html' } }, - chainWebpack (config) { + chainWebpack(config) { // set svg-sprite-loader config.module .rule('svg') .exclude.add(resolve('src/icons')) - .end() + .end(); config.module .rule('icons') .test(/\.svg$/) @@ -47,6 +48,6 @@ .options({ symbolId: 'icon-[name]' }) - .end() + .end(); } -} +}; -- Gitblit v1.8.0