diff --git a/src/config/index.js b/src/config/index.js index 65c904f..0bd1d9d 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -5,7 +5,7 @@ const config = { uploadURL: import.meta.env.VITE_UPLOAD_BASE_URL || 'http://localhost:3000/api/upload' }, production: { - baseURL: window.location.origin, + baseURL: 'https://minio.zrbjr.com/', uploadURL: import.meta.env.VITE_UPLOAD_BASE_URL || `${window.location.origin}/api/upload` } } @@ -29,7 +29,7 @@ export const getImageUrl = (imagePath) => { if (imagePath.startsWith('/uploads')) { const cleanBaseURL = baseURL.replace(/\/$/, '') // console.log('Image starts with /uploads, returning original path:', imagePath) - return `${cleanBaseURL}/jurongquan${imagePath}` + return `${imagePath}` } // 在开发环境下,也需要根据路径前缀处理 diff --git a/src/views/Distribution.vue b/src/views/Distribution.vue index 87b8cb1..8fcc2bd 100644 --- a/src/views/Distribution.vue +++ b/src/views/Distribution.vue @@ -106,7 +106,7 @@ const inviteLink = ref('') const generateInviteLink = () => { const userId = userStore.user?.id || userStore.user?.user_id || 'guest' console.log(userStore.user.id,userStore.user.user_id) - const baseUrl = 'http://192.168.1.124:5173' + const baseUrl = `${window.location.origin}/frontend` return `${baseUrl}/register?inviter=${userId}` } diff --git a/src/views/MyProfile.vue b/src/views/MyProfile.vue index af2a738..c17a5b4 100644 --- a/src/views/MyProfile.vue +++ b/src/views/MyProfile.vue @@ -160,10 +160,10 @@ export default { const settings = ref([ {text:'账号安全',path:'/editpasswordpage'}, {text:'商户资料',path:'/editdetailspage'}, - {text:'分销',path:'/distribution'}, - {text:'通知设置'}, - {text:'积分获取规则'}, - {text:'隐私协议'}, + // {text:'分销',path:'/distribution'}, + // {text:'通知设置'}, + // {text:'积分获取规则'}, + // {text:'隐私协议'}, ]); const functionItems = ref([ { image: "/imgs/mainpage/jiaoyijilu.png", text: "购物车", path: "/cart" }, @@ -435,7 +435,7 @@ export default { }; - \ No newline at end of file +