Giter Club home page Giter Club logo

Comments (14)

mebest100 avatar mebest100 commented on July 29, 2024

难道是因为后端接口的证书已过期的原因吗?

image

from vue-neteasecloud-webmusicapp.

fudaosheng avatar fudaosheng commented on July 29, 2024

!
图片
我刚启动试了下,没问题的,我看你控制台报错好像全是后台错误,是不是后台没启动好

from vue-neteasecloud-webmusicapp.

mebest100 avatar mebest100 commented on July 29, 2024

后台的启动命令就是这个把:node app.js,唯一的区别就是没有进入api目录启动,因为当前根目录并没有这个文件夹:
我实在找不出还有哪个地方错了:

image

from vue-neteasecloud-webmusicapp.

fudaosheng avatar fudaosheng commented on July 29, 2024

图片
启动成功会有一个3000端口号,你浏览器地址栏输入localhost:3000看看有没有页面,测试下

from vue-neteasecloud-webmusicapp.

mebest100 avatar mebest100 commented on July 29, 2024

这个有的: 能不能请你git clone一下后端最新的代码,然后启动起来再配合你的前端试试呢

image

from vue-neteasecloud-webmusicapp.

cod-star avatar cod-star commented on July 29, 2024

from vue-neteasecloud-webmusicapp.

fudaosheng avatar fudaosheng commented on July 29, 2024

图片
图片
我已经给后台升级到最新了,还是没问题

from vue-neteasecloud-webmusicapp.

mebest100 avatar mebest100 commented on July 29, 2024

我搜索了一下这个报错,网上说要在配置文件中设置:strictSSL: false,让nodejs忽略这种证书错误,
我不知道你是不是在你自己本地的前端配置文件中做了特别设定,否则我们两边结果不可能不一样。

from vue-neteasecloud-webmusicapp.

fudaosheng avatar fudaosheng commented on July 29, 2024

我的没有,它API官网也没说要配置,你自己配置试试吧

from vue-neteasecloud-webmusicapp.

mebest100 avatar mebest100 commented on July 29, 2024

关键是不知道这个这个忽略证书的配置应该写在哪个文件啊

from vue-neteasecloud-webmusicapp.

fudaosheng avatar fudaosheng commented on July 29, 2024

应该是vue.config.js这个文件

from vue-neteasecloud-webmusicapp.

mebest100 avatar mebest100 commented on July 29, 2024

好的,我试试看

from vue-neteasecloud-webmusicapp.

mebest100 avatar mebest100 commented on July 29, 2024

我修改了后端的request.js文件加入了strictSSL=false,虽然接口通了不报502错误,但是取不到正确的数据,返回非JSON数据:
image

你能从你本地访问一下这两个接口,看看返回数据是否正常吗?

http://localhost:3000/search/hot/detail
http://localhost:3000/search?keywords=%E6%B5%B7%E9%98%94%E5%A4%A9%E7%A9%BA

from vue-neteasecloud-webmusicapp.

mebest100 avatar mebest100 commented on July 29, 2024

找到原因了,原来是路由器开启了解锁网易云音乐的原因,关了就好了。

from vue-neteasecloud-webmusicapp.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.