Skip to content
基于vue2.x element-ui 的后台开发模板 包含侧边栏权限过滤基础模板..右侧是完整版预览
JavaScript Vue CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
config
server
src
static
test
.babelrc
.editorconfig
.eslintignore
.eslintrc.js
.gitignore
.postcssrc.js
.travis.yml
LICENSE
README.md
favicon.ico
index.html
package-lock.json
package.json

README.md

Vue-admin-template

vue element-ui license

基于vue2.x element-ui 的后台开发模板 包含侧边栏权限过滤基础模板

本地跑项目

#  download
git clone https://github.com/BiYuqi/vue-admin-template.git

cd vue-admin-template
# install dependencies
npm install

# start local server

npm run server

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

本地起服务

由于easy-mock服务非常不稳定,所以本地新增node模拟接口 server文件夹

  • 为本地node服务,本地npm run dev后,需要在server目录 node app 来启动本地服务,以便登录正常进行
  • 以下为utils/request.js文件配置
// base setting
const BASE_URL = process.env.NODE_ENV === 'production'
  ? 'https://easy-mock.com/mock/5aa881eb99ed355f274d0e93'
  : 'http://localhost:6890'
const service = axios.create({
  baseURL: BASE_URL,
  timeout: 10000
})

DEMO

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

You can’t perform that action at this time.