Commit 3e6e4621 authored by “yiyousong”'s avatar “yiyousong”

chore: 修改vue.config配置

parent fce772e3
......@@ -31,7 +31,7 @@ export default {
<style lang="less" scoped>
.app {
background-color: #eff0f4;
font-family: Source Han Sans CN;
// font-family: Source Han Sans CN;
.loading {
display: flex;
align-items: center;
......
......@@ -150,9 +150,9 @@ export default {
}
.top-data-total {
background: url("@/assets/img/banner.png") no-repeat center / 100% 100%;
font-family: Source Han Sans CN;
// font-family: Source Han Sans CN;
.title {
font-family: FZZhengHeiS-EB-GB;
// font-family: FZZhengHeiS-EB-GB;
font-size: 28px;
color: #1541e3;
font-weight: bold;
......@@ -178,14 +178,14 @@ export default {
}
:deep(.el-statistic) {
.number {
font-family: Source Han Sans CN;
// font-family: Source Han Sans CN;
font-weight: bold;
font-size: 34px;
color: var(--primary);
}
}
.main {
font-family: Source Han Sans CN;
// font-family: Source Han Sans CN;
.main-title {
margin-bottom: 27px;
font-weight: bold;
......
......@@ -80,7 +80,7 @@ export default {
.area-card {
width: 100%;
height: 150px;
font-family: Source Han Sans CN;
// font-family: Source Han Sans CN;
border-radius: 8px;
position: relative;
overflow: hidden;
......
......@@ -120,7 +120,7 @@ export default {
let mark = new Date().getTime();
// this.form.mark = mark;
this.securityUrl =
this.api + "/zwfw/securitycode/createCode" + `?mark=${mark}`;
this.api + "/bill/securitycode/createCode" + `?mark=${mark}`;
},
onSubmit() {
......
......@@ -10,9 +10,10 @@ import { message } from "@/utils/resetMessage";
// 请求超时时间
axios.defaults.timeout = 60 * 1000;
// 跨域允许携带cookie
axios.defaults.withCredentials = true;
// 设置统一服务器地址
axios.defaults.baseURL = process.env.VUE_APP_API_BASE_URL;
// axios.defaults.baseURL = "";
// 请求拦截
axios.interceptors.request.use(
(config) => {
......
......@@ -18,6 +18,16 @@ module.exports = defineConfig({
// "^/file": "",
// }
},
"/base": {
target: process.env.VUE_APP_API_BASE_URL,
changeOrigin: true,
cookieDomainRewrite: "localhost",
},
"/bill": {
target: process.env.VUE_APP_API_BASE_URL,
changeOrigin: true,
cookieDomainRewrite: "localhost",
},
"/uploads": {
target: process.env.VUE_APP_API_BASE_URL,
changeOrigin: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment