Commit fbae19a1b75eb8b80500205039053c4660cabdc9
1 parent
6d0f41b4
隐藏登陆人
Showing
2 changed files
with
3 additions
and
3 deletions
src/views/Login.vue
| @@ -56,8 +56,8 @@ export default { | @@ -56,8 +56,8 @@ export default { | ||
| 56 | data() { | 56 | data() { |
| 57 | return { | 57 | return { |
| 58 | form: { | 58 | form: { |
| 59 | - account: "cdoffice", | ||
| 60 | - password: "123456", | 59 | + account: "", // cdoffice |
| 60 | + password: "", // 123456 | ||
| 61 | }, | 61 | }, |
| 62 | rules: { | 62 | rules: { |
| 63 | account: { required: true, message: "用户名不能为空", trigger: "blur" }, | 63 | account: { required: true, message: "用户名不能为空", trigger: "blur" }, |
vue.config.js
| @@ -17,7 +17,7 @@ module.exports = defineConfig({ | @@ -17,7 +17,7 @@ module.exports = defineConfig({ | ||
| 17 | proxy: { | 17 | proxy: { |
| 18 | '/api': { | 18 | '/api': { |
| 19 | // 跨域请求的地址 | 19 | // 跨域请求的地址 |
| 20 | - target: 'http://8.130.38.56:8043/api', | 20 | + target: process.env.VUE_APP_BASE_API + '/api', |
| 21 | // target: 'http://localhost:2015/api', | 21 | // target: 'http://localhost:2015/api', |
| 22 | changeOrigin: true, // 是否允许跨域请求,在本地会创建一个虚拟服务端,发送接收请求数据,这样服务端和服务端进行数据的交互就不会有跨域问题 | 22 | changeOrigin: true, // 是否允许跨域请求,在本地会创建一个虚拟服务端,发送接收请求数据,这样服务端和服务端进行数据的交互就不会有跨域问题 |
| 23 | // 路径重写,替换请求地址 | 23 | // 路径重写,替换请求地址 |