vincent1993 / v2ex-vue Goto Github PK
View Code? Open in Web Editor NEWVue2 Family Barrels
Home Page: http://www.cusmos.me/v2ex
Vue2 Family Barrels
Home Page: http://www.cusmos.me/v2ex
非常想体验一下,谢谢!
这里有没有方法将store直接定义到单个view中,然后可以在里面直接定义getter,computed中就可以直接访问这些getter中的数据。因为按照现在的这种vuex结构,store定义到外面. 还要再定义一大堆getter文件,mutations文件。逻辑没有写多少,文件创建了一大堆。有没有可能优化这一点?
ERROR in .//babel-loader?presets[]=es2015&plugins[]=transform-runtime&comments=false!.//vue-loader/lib/selector.js?type=script&index=0!./src/views/Node.vue
Module build failed: SyntaxError: Unexpected token, expected , (19:37)
17 | if (!this.nodeList.length) {
18 | Promise.all([
19 | this.getAllNodeList();
| ^
20 | ])
21 | .then(() => {
22 | this.hideLoading();
另我改过来了不知怎么提交代码,囧
ERROR in .//vue-loader/lib/template-compiler.js?id=data-v-1d293d04!.//vue-loader/lib/selector.js?type=template&index=0!./sr
c/pages/news.vue
Vue template syntax error:
text "{{lifecycle}}" outside root element will be ignored.
XMLHttpRequest cannot load https://www.v2ex.com/api/topics/latest.json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3555' is therefore not allowed access.
ERROR in ./src/store/plugins.js
Module not found: Error: Cannot resolve module 'vuex/logger' in /Applications/MAMP/htdocs/V2EX-mobile/src/store
@ ./src/store/plugins.js 16:23-45
----大神帮忙看下怎么回事
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.