From 45d6b165f54f4e4344ebf2b56a84dec9c02b3e6f Mon Sep 17 00:00:00 2001 From: Vinjor Date: Wed, 23 Oct 2024 13:16:43 +0800 Subject: [PATCH] bug --- .env.prod | 11 +++++++---- src/layout/components/Navbar.vue | 2 +- src/utils/ruoyi.js | 1 + 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.env.prod b/.env.prod index 94ceef2..4b5b164 100644 --- a/.env.prod +++ b/.env.prod @@ -2,15 +2,15 @@ NODE_ENV = 'production' # 页面标题 -VUE_APP_TITLE = 芋道管理系统 +VUE_APP_TITLE = "车联通"后台管理系统 # 芋道管理系统/生产环境 -VUE_APP_BASE_API = '/prod-api' +VUE_APP_BASE_API = 'https://www.nuoyunr.com' # 根据服务器或域名修改 -PUBLIC_PATH = 'http://my-pi.com:8888/yudao-admin/' +PUBLIC_PATH = 'http://159.75.168.143:82' # 附件请求地址前缀 -VUE_APP_FILE_API = 'http://122.51.230.86:9000/' +VUE_APP_FILE_API = 'https://www.nuoyunr.com/minio/' # 二级部署路径 VUE_APP_APP_NAME ='yudao-admin' @@ -28,3 +28,6 @@ VUE_APP_BAIDU_CODE = fadc1bd5db1a1d6f581df60a1807f8ab # 大屏设计器服务 VUE_APP_BIG_SCREEN_SERVER = 'http://127.0.0.1:3000' + +#小程序推广码前缀 +VUE_APP_REPAIR_PREX = 'https://www.lighting-it.cn/share?inviteId=' diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index bbc1d36..2aafa80 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -106,7 +106,7 @@ export default { async logout() { this.$modal.confirm('确定注销并退出系统吗?', '提示').then(() => { this.$store.dispatch('LogOut').then(() => { - location.href = getPath('/index'); + window.location.href = "http://159.75.168.143:82/yudao-admin/login"; }) }).catch(() => {}); } diff --git a/src/utils/ruoyi.js b/src/utils/ruoyi.js index fd5d109..5c7eafd 100644 --- a/src/utils/ruoyi.js +++ b/src/utils/ruoyi.js @@ -228,6 +228,7 @@ export function getBasePath() { export function getPath(path) { // 基础路径,必须以 / 结尾 let basePath = getBasePath(); + console.log(basePath,"basePath") if (!basePath.endsWith('/')) { return basePath + '/'; }