diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index caf7aeb..5c846b1 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -21,7 +21,7 @@ export default { // jwcode:90098889,//有成绩的 // jwcode:90098890,//有成绩的 // jwcode:90098891,//有成绩的 - jwcode:90098892,//没有成绩的 + jwcode:90098892,//有成绩的 // jwcode:90098893,//没有成绩的 // jwcode:90098894,//没有成绩的 }; diff --git a/src/views/WrongQuestion.vue b/src/views/WrongQuestion.vue new file mode 100644 index 0000000..af97bb0 --- /dev/null +++ b/src/views/WrongQuestion.vue @@ -0,0 +1,49 @@ + + + + + + diff --git a/vue.config.js b/vue.config.js index 910e297..099f448 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,4 +1,32 @@ +// const { defineConfig } = require('@vue/cli-service') +// module.exports = defineConfig({ +// transpileDependencies: true +// }) const { defineConfig } = require('@vue/cli-service') + module.exports = defineConfig({ - transpileDependencies: true + devServer: { + proxy: { + // 代理所有以 /api 开头的请求 + '/api': { + target: 'http://192.168.40.41:8000', // 你的后端地址 + changeOrigin: true, // 允许跨域 + pathRewrite: { + '^/api': '' // 重写路径,去掉 /api 前缀 + }, + secure: false, // 如果是https接口,需要配置这个参数 + logLevel: 'debug' // 查看代理日志 + }, + + // 可以配置多个代理 + '/upload': { + target: 'http://localhost:3000', + changeOrigin: true + } + }, + + // 允许外部访问 + host: '0.0.0.0', + port: 8080 + } })