Skip to content

ideacome-frontend/vue-admin-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

38c753e · Jul 28, 2020

History

9 Commits
May 27, 2020
May 29, 2020
May 29, 2020
Jun 4, 2020
May 27, 2020
May 29, 2020
Jul 28, 2020
Jul 28, 2020
Jul 28, 2020
May 27, 2020
Jun 4, 2020
May 27, 2020
May 29, 2020
Jul 28, 2020
May 27, 2020
May 27, 2020
May 29, 2020
May 27, 2020
Jul 28, 2020

Repository files navigation

vue-admin-template

A minimal vue admin template with Element UI & axios & iconfont & permission control & lint

Build Setup

# clone the project
git clone https://github.com/ideacome-frontend/vue-admin-template.git

# or use ideacome cli create project 
npm install -g ideacome-cli

ideacome create project-name

# enter the project directory
cd vue-admin-template

# install dependency
npm install

# develop
npm run dev

This will automatically open http://localhost:2333

Build

# build for test environment
npm run build:stage

# build for production environment
npm run build:prod

Advanced

# preview the release environment effect
npm run preview

# preview the release environment effect + static resource analysis
npm run preview -- --report

# code format check
npm run lint

# code format check and auto fix
npm run lint -- --fix

request

如果后端接口支持跨域: 可以直接在 .env.development 中配置后端接口地址

如果后端接口不支持跨域 本地开发可在 vue.config.js 的 devServer => proxy中配置后端接口地址 本地请求的时候会把http://127.0.0.1/dev-api/xxx 转发到对应的接口地址

token

如果前端域名和接口域名相同,则可以使用cookie传递token,这也是默认的传递方式 如果域名不同,可以在 request.js 中的请求头中主动设置token参数

Browsers support

Modern browsers and Internet Explorer 10+.

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
IE10, IE11, Edge last 2 versions last 2 versions last 2 versions

License

MIT license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published