Giter VIP home page Giter VIP logo

nuxt-iview's Introduction

nuxt-demo

最近公司CRM项目采用 nuxt+ivew+iview-admin+koa2的组合模式开发,目前正在踩坑中,demo还不完整,后面会继续更新

相关页面效果

截图一: 账号和密码随意填写

截图1

截图二:

截图2

截图三:

截图3

刷新浏览器,重新从服务器端获取页面,看到是已经渲染过的html

截图4

项目地址

git clone https://github.com/moedong/nuxt-iview.git

安装

npm install

开发

npm run dev

// GO to http://127.0.0.1:3000

测试环境

// 需要pm2,如果没有安装的先安装  npm install -g pm2
npm run publish:test

生产环境

// 需要pm2,如果没有安装的先安装  npm install -g pm2
npm run publish:prod

参考资料

Nuxt.js docs

iview docs

iview-admin

koa-template

nuxt-iview's People

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

Watchers

 avatar  avatar

nuxt-iview's Issues

fsevents is not a constructor

执行yarn dev后报错

/Users/chen ray/Documents/project/nuxt-iview/node_modules/backpack-core/node_modules/chokidar/lib/fsevents-handler.js:26
return (new fsevents(path)).on('fsevent', callback).start();
^

TypeError: fsevents is not a constructor
at createFSEventsInstance (/Users/chen ray/Documents/project/nuxt-iview/node_modules/backpack-core/node_modules/chokidar/lib/fsevents-handler.js:26:11)
at setFSEventsListener (/Users/chen ray/Documents/project/nuxt-iview/node_modules/backpack-core/node_modules/chokidar/lib/fsevents-handler.js:80:16)
at FSWatcher.FsEventsHandler._watchWithFsEvents (/Users/chen ray/Documents/project/nuxt-iview/node_modules/backpack-core/node_modules/chokidar/lib/fsevents-handler.js:244:16)
at FSWatcher. (/Users/chen ray/Documents/project/nuxt-iview/node_modules/backpack-core/node_modules/chokidar/lib/fsevents-handler.js:378:25)
at LOOP (fs.js:1570:14)
at process._tickCallback (internal/process/next_tick.js:61:11)

npm run dev error in ./.nuxt/client.js

in ./.nuxt/client.js

Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Plugin 0 specified in "/Users/racaly/workspace/nuxt-iview/node_modules/@nuxtjs/babel-preset-app/index.js" provided an invalid property of "default" (While processing preset: "/Users/racaly/workspace/nuxt-iview/node_modules/@nuxtjs/babel-preset-app/index.js")

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.