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

chore: 修改vue.config配置

parent fce772e3
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.app { .app {
background-color: #eff0f4; background-color: #eff0f4;
font-family: Source Han Sans CN; // font-family: Source Han Sans CN;
.loading { .loading {
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -150,9 +150,9 @@ export default { ...@@ -150,9 +150,9 @@ export default {
} }
.top-data-total { .top-data-total {
background: url("@/assets/img/banner.png") no-repeat center / 100% 100%; background: url("@/assets/img/banner.png") no-repeat center / 100% 100%;
font-family: Source Han Sans CN; // font-family: Source Han Sans CN;
.title { .title {
font-family: FZZhengHeiS-EB-GB; // font-family: FZZhengHeiS-EB-GB;
font-size: 28px; font-size: 28px;
color: #1541e3; color: #1541e3;
font-weight: bold; font-weight: bold;
...@@ -178,14 +178,14 @@ export default { ...@@ -178,14 +178,14 @@ export default {
} }
:deep(.el-statistic) { :deep(.el-statistic) {
.number { .number {
font-family: Source Han Sans CN; // font-family: Source Han Sans CN;
font-weight: bold; font-weight: bold;
font-size: 34px; font-size: 34px;
color: var(--primary); color: var(--primary);
} }
} }
.main { .main {
font-family: Source Han Sans CN; // font-family: Source Han Sans CN;
.main-title { .main-title {
margin-bottom: 27px; margin-bottom: 27px;
font-weight: bold; font-weight: bold;
......
...@@ -80,7 +80,7 @@ export default { ...@@ -80,7 +80,7 @@ export default {
.area-card { .area-card {
width: 100%; width: 100%;
height: 150px; height: 150px;
font-family: Source Han Sans CN; // font-family: Source Han Sans CN;
border-radius: 8px; border-radius: 8px;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
......
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
let mark = new Date().getTime(); let mark = new Date().getTime();
// this.form.mark = mark; // this.form.mark = mark;
this.securityUrl = this.securityUrl =
this.api + "/zwfw/securitycode/createCode" + `?mark=${mark}`; this.api + "/bill/securitycode/createCode" + `?mark=${mark}`;
}, },
onSubmit() { onSubmit() {
......
...@@ -10,9 +10,10 @@ import { message } from "@/utils/resetMessage"; ...@@ -10,9 +10,10 @@ import { message } from "@/utils/resetMessage";
// 请求超时时间 // 请求超时时间
axios.defaults.timeout = 60 * 1000; 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( axios.interceptors.request.use(
(config) => { (config) => {
......
...@@ -18,6 +18,16 @@ module.exports = defineConfig({ ...@@ -18,6 +18,16 @@ module.exports = defineConfig({
// "^/file": "", // "^/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": { "/uploads": {
target: process.env.VUE_APP_API_BASE_URL, target: process.env.VUE_APP_API_BASE_URL,
changeOrigin: true, 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