Skip to content

Commit 5e26925

Browse files
committed
vite.config
1 parent ab46e0e commit 5e26925

File tree

2 files changed

+30
-31
lines changed

2 files changed

+30
-31
lines changed

src/css/main.css

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,46 @@
11
body {
2-
/*背景图片*/
3-
/* background-image: url('https://dogefs.s3.ladydaily.com/~/source/wallhaven/full/jx/wallhaven-jxl3qp.jpg?w=2560&h=1440&fmt=webp'); */
4-
background-repeat: no-repeat;
5-
background-size: cover;
2+
/*背景图片*/
3+
background-image: url("https://dogefs.s3.ladydaily.com/~/source/wallhaven/full/jx/wallhaven-jxl3qp.jpg?w=2560&h=1440&fmt=webp");
4+
background-repeat: no-repeat;
5+
background-size: cover;
66
}
77

88
body::after {
9-
content: "";
10-
position: absolute;
11-
top: 0;
12-
right: 0;
13-
bottom: 0;
14-
left: 0;
15-
background: rgba(0, 0, 0, 0.2); /* 这里的0.5是遮罩的透明度*/
16-
z-index: -1;
9+
content: "";
10+
position: absolute;
11+
top: 0;
12+
right: 0;
13+
bottom: 0;
14+
left: 0;
15+
background: rgba(0, 0, 0, 0.2); /* 这里的0.5是遮罩的透明度*/
16+
z-index: -1;
1717
}
1818

1919
#checkTheme {
20-
background-color: rgba(0, 0, 0, 0);
20+
background-color: rgba(0, 0, 0, 0);
2121
}
2222

2323
/* 表格添加圆角 */
2424
.el-table {
25-
opacity: 0.75;
26-
border-radius: 10px; /* 圆角半径 */
27-
overflow: hidden; /* 隐藏超出边界的内容 */
28-
box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
25+
opacity: 0.75;
26+
border-radius: 10px; /* 圆角半径 */
27+
overflow: hidden; /* 隐藏超出边界的内容 */
28+
box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
2929
}
3030

31-
3231
.el-header {
33-
height: 550px;
34-
border-top-left-radius: 10px;
35-
border-top-right-radius: 10px;
36-
overflow: hidden;
32+
height: 550px;
33+
border-top-left-radius: 10px;
34+
border-top-right-radius: 10px;
35+
overflow: hidden;
3736
}
3837

3938
.el-aside {
40-
border-bottom-left-radius: 10px;
41-
overflow: hidden;
42-
height: 550px;
39+
border-bottom-left-radius: 10px;
40+
overflow: hidden;
41+
height: 550px;
4342
}
4443

45-
4644
.el-dialog {
47-
border-radius: 20px;
48-
}
45+
border-radius: 20px;
46+
}

vite.config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ export default defineConfig({
2929
host: "localhost",
3030
port: 5173,
3131
proxy: {
32-
'/api': { //匹配请求路径中含有 /api 的请求
33-
// target: 'http://47.115.226.138:8080', //后端服务地址
34-
target: 'http://localhost:8080', //后端服务地址
32+
"/api": {
33+
//匹配请求路径中含有 /api 的请求
34+
// target: 'http://47.115.226.138:8080', //后端服务地址
35+
target: "http://laptop:10086", //后端服务地址
3536
changeOrigin: true,
3637
rewrite: (path) => path.replace(/^\/api/, ""), //去除路径中的/api,还原请求路径
3738
},

0 commit comments

Comments
 (0)