diff --git a/.env.development b/.env.development index a8189d3e..48008352 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,8 @@ # Custom Environment Variables (Must be named with VITE_ prefix) ## Development Environment Address Prefix (usually '/' or './') TODO: -VITE_API_BASE_URL = `http://127.0.0.1:10007` +VITE_API_UPLOADS_URL = `http://127.0.0.1:10007/uploads` +VITE_API_BASE_URL = `http://127.0.0.1:10007/api` ## Router Mode, hash or html5 VITE_ROUTER_HISTORY = 'html5' diff --git a/src/views/login/Login.vue b/src/views/login/Login.vue index e2c492ee..8328476e 100644 --- a/src/views/login/Login.vue +++ b/src/views/login/Login.vue @@ -12,8 +12,8 @@ const isShowPanel = ref('') // Background image, this is the backend's URL const backgroundImageUrl = `${ - import.meta.env.VITE_API_BASE_URL -}/uploads/login/login.webp` + import.meta.env.VITE_API_UPLOADS_URL +}/login/login.webp` // Click login, slide the panel const handleClickSignIn = () => {