Comments (38)
你前后端都运行了吗
from music-player.
运行了
from music-player.
你前端刷新界面,后端的控制台有什么报错信息吗
from music-player.
from music-player.
这个文件里面src\utils\request.js开头的baseURL改为baseURL = 'http://localhost:9999',试试看
from music-player.
这个环境变量没有改,目前你应该是用本地的服务器
from music-player.
from music-player.
上面那个baseURL改成localhost:9999
默认走的是这个process.env.NODE.ENV == "development"
from music-player.
应该是写前端的没改这个
from music-player.
最上面那个baseURL的赋值没啥作用,在if哪里又重新赋值了,可能我刚才描述的不是太全面
from music-player.
![屏幕截图 2023-11-17 220856](https://private-user-images.githubusercontent.com/80684431/283826916-1ce7d3f7-a905-4c91-8f78-5a2f2080ca45.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxOTI4OTAsIm5iZiI6MTcyNDE5MjU5MCwicGF0aCI6Ii84MDY4NDQzMS8yODM4MjY5MTYtMWNlN2QzZjctYTkwNS00YzkxLThmNzgtNWEyZjIwODBjYTQ1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDIyMjMxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU5YmE5ZDQ5YmQ5N2VhZjM0NGI5MzQ5MzQ3NzBhMTA3MmY4MzhlMTQxYzliNmE3YjcwMGQ5OWRmNmJjZjQ0NWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.R4F56i3oGs4gcosAgOAlPE-XFWPT6UWMu4Esq8GaWPY)
from music-player.
from music-player.
后端也没有报错
from music-player.
你后端的项目目录看一下呗
from music-player.
from music-player.
from music-player.
那个img文件夹位置有问题,等一会回宿舍给你看一下
from music-player.
嗯嗯,非常感谢
from music-player.
![屏幕截图 2023-11-17 224214](https://private-user-images.githubusercontent.com/80684431/283835981-4ae9f775-2878-483a-a0c8-b431554c627a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxOTI4OTAsIm5iZiI6MTcyNDE5MjU5MCwicGF0aCI6Ii84MDY4NDQzMS8yODM4MzU5ODEtNGFlOWY3NzUtMjg3OC00ODNhLWEwYzgtYjQzMTU1NGM2MjdhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDIyMjMxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE5YzIyYzk4ZTZhMmJiMmRkMTYxNWRjMDg3ZDYyYmUxOGJiNzhiYjZiZmNhYTdlMmRkNzhkZDlkYTA5MTc0NjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.hvtPRBx14e2N5EStntwf6Y1reCZPeMTLj5ojCZ7TmOs)
from music-player.
后端项目目录,把下载的那个图片和音乐放在这里
from music-player.
在哪下载,我没找到
from music-player.
额,链接失效了,看看传到网盘,但是好像速度有点慢。。
from music-player.
没事啥时候都行
from music-player.
你现在下载呗,在那个music-player-back的readme文件里面有那个链接
from music-player.
好的
from music-player.
from music-player.
请求之后后端报的啥信息
from music-player.
from music-player.
from music-player.
你会用postman嘛,发几个请求给后端,看后端可正常响应
from music-player.
还有你的redis开了吧
from music-player.
数据库配置文件改你自己的用户名密码啥的
from music-player.
数据库和redis没啥问题
from music-player.
from music-player.
from music-player.
你后端服务器的端口不是9999嘛
from music-player.
from music-player.
你后端开着,然后浏览器请求一下这个地址http://localhost:9999/img/bannerImg/1.jpg,看一下出不出来页面,以及后端有没有报错
from music-player.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from music-player.