feat:增加博客管理网站
This commit is contained in:
24
nginx.conf
24
nginx.conf
@@ -15,6 +15,30 @@ server {
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location /sweet-hut/ {
|
||||
proxy_pass http://host.docker.internal:83/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location /blog-admin/ {
|
||||
proxy_pass http://host.docker.internal:84/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location /home-api/ {
|
||||
proxy_pass http://host.docker.internal:8081/;
|
||||
}
|
||||
|
||||
location /blog-api/ {
|
||||
proxy_pass http://host.docker.internal:8082/;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
15
src/App.vue
15
src/App.vue
@@ -22,10 +22,10 @@
|
||||
</el-card>
|
||||
|
||||
<el-card class="app-card" style="background-color: blueviolet;"
|
||||
@click="adminClick">
|
||||
@click="blogAdminClick">
|
||||
<i class="fa-solid fa-gear"></i>
|
||||
<div>
|
||||
<span>管理系统</span>
|
||||
<span>博客管理系统</span>
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
@@ -50,6 +50,11 @@ import { isMobile } from "./utils"
|
||||
import { ElMessage } from "element-plus"
|
||||
|
||||
const blogClick = () => {
|
||||
if (isMobile()) {
|
||||
ElMessage.info('暂不支持移动端访问')
|
||||
return
|
||||
}
|
||||
|
||||
window.open(`${window.location.origin}/blog/`, '_blank');
|
||||
}
|
||||
|
||||
@@ -59,16 +64,16 @@ const sweetHutClick = () => {
|
||||
return
|
||||
}
|
||||
|
||||
// window.open('edge-demo', '_blank');
|
||||
window.open(`${window.location.origin}/sweet-hut/`, '_blank');
|
||||
}
|
||||
|
||||
const adminClick = () => {
|
||||
const blogAdminClick = () => {
|
||||
if (isMobile()) {
|
||||
ElMessage.info('暂不支持移动端访问')
|
||||
return
|
||||
}
|
||||
|
||||
// window.open('edge-readme', '_blank');
|
||||
window.open(`${window.location.origin}/blog-admin/`, '_blank');
|
||||
}
|
||||
|
||||
const resumeClick = () => {
|
||||
|
||||
Reference in New Issue
Block a user