From 9ccfba5645021cf9a4545bbb6b0f300a66b2d06d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E6=B0=B8=E8=B6=85?= <2090205686@qq.com> Date: Tue, 2 Sep 2025 15:32:30 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20perf:=20=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=8C=E7=94=9F=E4=BA=A7=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 4 ++-- src/router/index.js | 4 ++-- src/views/error/401.vue | 2 +- src/views/login copy.vue | 2 +- src/views/monitor/job/index.vue | 2 +- src/views/register.vue | 4 ++-- src/views/system/role/index.vue | 2 +- src/views/system/user/index.vue | 2 +- vite.config.js | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.env.production b/.env.production index 0569ad4..ca05dbb 100644 --- a/.env.production +++ b/.env.production @@ -5,8 +5,8 @@ VITE_APP_TITLE = 政务云后台管理系统 VITE_APP_ENV = 'production' # 生产环境 -VITE_APP_BASE_API = 'http://47.109.205.240:8080' -VITE_APP_PLATFORM = 'http://47.109.205.240/platform' +VITE_APP_BASE_API = 'https://app.yingyijt.com/apis' +VITE_APP_PLATFORM = 'https://app.yingyijt.com/platform' # 是否在打包时开启压缩,支持 gzip 和 brotli VITE_BUILD_COMPRESS = gzip \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 85153c3..d7b9b80 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -79,10 +79,10 @@ export const constantRoutes = [ path: '/sub-government-admin/user', component: Layout, hidden: true, - redirect: '/sub-government-admin/user/profile', + redirect: 'noredirect', children: [ { - path: 'profile/:activeTab?', + path: '', component: () => import('@/views/system/user/profile/index'), name: 'Profile', meta: { title: '个人中心', icon: 'user' } diff --git a/src/views/error/401.vue b/src/views/error/401.vue index b361368..b9c1a04 100644 --- a/src/views/error/401.vue +++ b/src/views/error/401.vue @@ -34,7 +34,7 @@ const errGif = ref(errImage + "?" + +new Date()) function back() { if (proxy.$route.query.noGoBack) { - proxy.$router.push({ path: "/" }) + proxy.$router.push({ path: "/sub-government-admin" }) } else { proxy.$router.go(-1) } diff --git a/src/views/login copy.vue b/src/views/login copy.vue index b836e69..6952b89 100644 --- a/src/views/login copy.vue +++ b/src/views/login copy.vue @@ -150,7 +150,7 @@ function handleLogin() { } return acc; }, {}); - router.push({ path: redirect.value || "/", query: otherQueryParams }); + router.push({ path: redirect.value || "/sub-government-admin", query: otherQueryParams }); }) .catch(() => { loading.value = false; diff --git a/src/views/monitor/job/index.vue b/src/views/monitor/job/index.vue index 3af06c1..99ff8bb 100644 --- a/src/views/monitor/job/index.vue +++ b/src/views/monitor/job/index.vue @@ -438,7 +438,7 @@ function crontabFill(value) { /** 任务日志列表查询 */ function handleJobLog(row) { const jobId = row.jobId || 0 - router.push('/monitor/job-log/index/' + jobId) + router.push('/sub-government-admin/monitor/job-log/index/' + jobId) } /** 新增按钮操作 */ diff --git a/src/views/register.vue b/src/views/register.vue index badd966..03bdb54 100644 --- a/src/views/register.vue +++ b/src/views/register.vue @@ -64,7 +64,7 @@ 注 册 中...
- 使用已有账户登录 + 使用已有账户登录
@@ -130,7 +130,7 @@ function handleRegister() { dangerouslyUseHTMLString: true, type: "success", }).then(() => { - router.push("/login") + router.push("/sub-government-admin/login") }).catch(() => {}) }).catch(() => { loading.value = false diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index 4a53582..0ecf120 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -373,7 +373,7 @@ function handleCommand(command, row) { /** 分配用户 */ function handleAuthUser(row) { - router.push("/system/role-auth/user/" + row.roleId) + router.push("/sub-government-admin/system/role-auth/user/" + row.roleId) } /** 查询菜单树结构 */ diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index b3d6eb2..c2471ef 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -399,7 +399,7 @@ function handleCommand(command, row) { /** 跳转角色分配 */ function handleAuthRole(row) { const userId = row.userId - router.push("/system/user-auth/role/" + userId) + router.push("/sub-government-admin/system/user-auth/role/" + userId) } /** 重置密码按钮操作 */ diff --git a/vite.config.js b/vite.config.js index 0570b72..d122531 100644 --- a/vite.config.js +++ b/vite.config.js @@ -41,7 +41,7 @@ export default defineConfig(({ mode, command }) => { }, // vite 相关配置 server: { - port: 80, + port: 82, host: '0.0.0.0', open: true, headers: {