Coder Social home page Coder Social logo

tumo-vue's Introduction

Hi there 👋

Hi, I'm TyCoding.

🇨🇳  China BeiJing     🌱  Unknow

微信群交流:v: LangchainChat(备注来意)

http://tycoding.cn

tumo-vue's People

Contributors

tycoding avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tumo-vue's Issues

nginx 部署时 前端报错

nginx部署好后
本地访问报
Uncaught TypeError: i is undefined
b240 headroom.min.js:11
b240 headroom.min.js:8
b240 app.2da3d9c0.js:6
h (index):1
a18c app.2da3d9c0.js:1
h (index):1
4360 app.2da3d9c0.js:1
h (index):1
56d7 app.2da3d9c0.js:1
h (index):1
0 app.2da3d9c0.js:1
h (index):1
n (index):1
c (index):1
app.2da3d9c0.js:1
其他服务器访问报
headroom.min.js:11 Uncaught TypeError: Cannot set property 'Headroom' of undefined
at headroom.min.js:11
at Object. (headroom.min.js:8)
at Object.b240 (app.2da3d9c0.js:6)
at h (admin:1)
at Object.a18c (app.2da3d9c0.js:1)
at h (admin:1)
at Object.4360 (app.2da3d9c0.js:1)
at h (admin:1)
at Module.56d7 (app.2da3d9c0.js:1)

前端展示报错,找不到文章

我按照楼主的步骤,在本地启动 后端及 前端

  1. 本机部署及启动后端工程,浏览器访问 http://localhost:8080/tumo 成功;

  2. 本机部署前端,http://localhost:9528/ 可以打开,但是访问 文章列表失败;
    经过排查,发现问题是跨域访问导致,在vue.config.js 的跨域配置少了部分内容:

    proxy: {
    '/api': {
    target: 'http://localhost:8080/',
    ws: true,

     //少了下面部分,导致加了/api 后,无法找到对应的后台接口
     changeOrigin: true,
     pathRewrite: {
      // ^代表字符串开头,实际发送请求时,会把请求开头的/demo删除
      // 因为/demo并不是请求的一部分,只是个代理的标识
         "^/api": ""
     }
    

    }
    }

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.