diff --git a/src/views/Login.vue b/src/views/Login.vue index 488a42a..4ecf0b6 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -56,8 +56,8 @@ export default { data() { return { form: { - account: "cdoffice", - password: "123456", + account: "", // cdoffice + password: "", // 123456 }, rules: { account: { required: true, message: "用户名不能为空", trigger: "blur" }, diff --git a/vue.config.js b/vue.config.js index 5825653..591096c 100644 --- a/vue.config.js +++ b/vue.config.js @@ -17,7 +17,7 @@ module.exports = defineConfig({ proxy: { '/api': { // 跨域请求的地址 - target: 'http://8.130.38.56:8043/api', + target: process.env.VUE_APP_BASE_API + '/api', // target: 'http://localhost:2015/api', changeOrigin: true, // 是否允许跨域请求,在本地会创建一个虚拟服务端,发送接收请求数据,这样服务端和服务端进行数据的交互就不会有跨域问题 // 路径重写,替换请求地址