win5do / vue-fb-demo Goto Github PK
View Code? Open in Web Editor NEWa simple admin demo,backend use node,frontend use vue.
a simple admin demo,backend use node,frontend use vue.
请教下:后端跑起来后,遇到调用会报如下错误,
let q = conn.query(sql, val, (err, rows) => {
^
TypeError: Cannot read property 'query' of undefined
at pool.getConnection (D:\Projects\vue\vue-fb-demo-master\back-end\sql\func.js:8:26)
具体是啥原因?谢谢
TypeError: Cannot read property 'length' of null
at func.connPool.rows (E:\vue-fb-demo\back-end\controls\user.js:90:23)
at Query.conn.query [as _callback] (E:\vue-fb-demo\back-end\sql\func.js:16:17)
at Query.Sequence.end (E:\vue-fb-demo\back-end\node_modules\mysql\lib\protocol\sequences\Sequence.js:88:24)
at Query._handleFinalResultPacket (E:\vue-fb-demo\back-end\node_modules\mysql\lib\protocol\sequences\Query.js:139:8)
at Query.EofPacket (E:\vue-fb-demo\back-end\node_modules\mysql\lib\protocol\sequences\Query.js:123:8)
at Protocol._parsePacket (E:\vue-fb-demo\back-end\node_modules\mysql\lib\protocol\Protocol.js:279:23)
at Parser.write (E:\vue-fb-demo\back-end\node_modules\mysql\lib\protocol\Parser.js:76:12)
at Protocol.write (E:\vue-fb-demo\back-end\node_modules\mysql\lib\protocol\Protocol.js:39:16)
at Socket. (E:\vue-fb-demo\back-end\node_modules\mysql\lib\Connection.js:103:28)
at emitOne (events.js:116:13)
start.js:247 Refused to frame 'http://ht.www.sogou.com/websearch/features/yun6.jsp?pid=sogou-brse-d2a452ed…98D83EC3B72BB16A05F1BDF&query=Error|http%3A%2F%2Flocalhost%3A9999%2Fapi%2F' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'frame-src' was not explicitly set, so 'default-src' is used as a fallback.
initIframe @ start.js:247(anonymous function) @ start.js:548
localhost/:1 Refused to load the image 'http://ht.www.sogou.com/images/extsugg/sogoutip.gif' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback.
1.前端跑起来后ERROR in ./src/js/index.js
Module not found: Error: Can't resolve '../../theme/index.css' in 'D:\person\设计模式\vueTest\vue-fb-d
emo\vue-fb-demo\front-end\src\js'
2.后台nodemon app不能跑起后台
3.希望有时间可以单独问下你相关问题[email protected]
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.