Giter Club home page Giter Club logo

v2ex-vue's Introduction

V2EX-mobile

用到的东西

  • Vue2
  • Vuex2
  • Vue-Router2

如何开发

    git clone https://github.com/Vincent1993/V2EX-mobile.git ***your project***

    npm i

    npm start

    [https://localhost:3555](本地调试)

这边建议装一下跨域调试工具

目录结构

    src/
        assets/                         ---> 静态资源文件
        components/                     ---> 组件文件
        config/                         ---> 项目配置文件
        filters/                        ---> 过滤器
        router/                         ---> vue-router配置文件
        store/                          
            actions/                    ---> vuex actions
            getters/                    ---> vuex getters
            modules/                    ---> vuex modules
            index.js                    ---> vuex store
            plugins.js                  ---> vuex plugins
        utils/                          ---> 共用函数
        vendor/                         ---> ThirdParty lib
        views/                          ---> 展示视图库
        main.js                         ---> 入口文件
    .babelrc                            ---> babel 配置文件
    .eslintrc                           ---> eslint 配置文件
    .gitignore                          ---> gitignore
    index.html                          ---> index
    package.json                        ---> package
    README.md                           ---> 本文件
    webpack.config.common.js            ---> webpack通用配置
    webpack.config.dev.js               ---> webpack开发配置

v2ex-vue's People

Contributors

vincent1993 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

v2ex-vue's Issues

app.vue报错

image
出现了这个问题,当然,我把plugin.js里面的vuex/logger改成了vuex/dist/logger,卡在这了o(╯□╰)o

views/node.vue处有一个错误

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();


;号要改为,

另我改过来了不知怎么提交代码,囧

在我MAC机器上运行项目,报了这个错误

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

----大神帮忙看下怎么回事

mac run npm start error

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.

请教一些vue2的问题

这里有没有方法将store直接定义到单个view中,然后可以在里面直接定义getter,computed中就可以直接访问这些getter中的数据。因为按照现在的这种vuex结构,store定义到外面. 还要再定义一大堆getter文件,mutations文件。逻辑没有写多少,文件创建了一大堆。有没有可能优化这一点?

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.