Hi, I'm TyCoding.
🇨🇳 China BeiJing 🌱 Unknow
微信群交流:v: LangchainChat(备注来意)
Tumo Blog For Vue.js. 前后端分离
Home Page: http://tumo.tycoding.cn
Hi, I'm TyCoding.
🇨🇳 China BeiJing 🌱 Unknow
微信群交流:v: LangchainChat(备注来意)
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)
我按照楼主的步骤,在本地启动 后端及 前端
本机部署及启动后端工程,浏览器访问 http://localhost:8080/tumo 成功;
本机部署前端,http://localhost:9528/ 可以打开,但是访问 文章列表失败;
经过排查,发现问题是跨域访问导致,在vue.config.js 的跨域配置少了部分内容:
proxy: {
'/api': {
target: 'http://localhost:8080/',
ws: true,
//少了下面部分,导致加了/api 后,无法找到对应的后台接口
changeOrigin: true,
pathRewrite: {
// ^代表字符串开头,实际发送请求时,会把请求开头的/demo删除
// 因为/demo并不是请求的一部分,只是个代理的标识
"^/api": ""
}
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.