Giter Site home page Giter Site logo

Comments (4)

zhoujingang avatar zhoujingang commented on July 29, 2024

我也遇到同样的问题,jsonp访问的都正常,其它接口404

from vue-music.

k-water avatar k-water commented on July 29, 2024

线上部署需要启动后台服务node prod.server.js,同时还要做跨域处理,这个可以在后台直接写也可以用Nginx。 @echozr @zhoujingang

from vue-music.

zhoujingang avatar zhoujingang commented on July 29, 2024

首先很感谢你能回应^_^, 你的意思是在服务器起一个node服务吗?还是打包后只需要配置nginx就行了。

因为我目前就仅仅打包后,放在nginx里面,本地访问没有问题,所以我想应该是环境配置,所以不知怎么下手 @k-water 

from vue-music.

k-water avatar k-water commented on July 29, 2024

服务器还要启动一个node服务,相当于前后端分离吧,启动node服务把接口跑起来 @zhoujingang

from vue-music.

Related Issues (17)

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.