1 Star 0 Fork 17

大叔 / vue前端门户网站

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

安软门户基础模板

简介

基于Vue CLI 4构建的门户网站,开箱即用

  • 多语言
  • ElementUi 按需加载
  • CDN 引入第三方依赖
  • 路由懒加载
  • 顶部导航固定
  • 二级路由
  • eslint 代码规范

注意点

  1. public 文件夹的静态资源都会被简单的复制,而不经过 webpack。详情
  2. ElementUI 是按需引入,可以更具自己的业务需求添加删除
  3. 如果不想使用引入CDN引入删除externals节点和chainWebpackCDN配置,最后删除public下面的index.html中CDN注入代码即可

项目结构

    ├── public                     -- 不进过webpack打开目录
    ├── src                        -- 开发目录
    ├      ├── utils               -- 工具类
    ├      ├── assets              -- 资源文件夹
    ├      ├      └── css          -- css 存放
    ├      ├      └── js           -- js 存放
    ├      ├      └── img          -- 静态图片存放
    ├      ├── components          -- 封装组件 
    ├      ├── lang                -- 多语言包
    ├      ├── views               -- 路由页面
    ├── theme                      -- element ui 主题        

开发

# 安装依赖
yarn install

# 启动服务
yarn run dev

打包


#打包生产包
yarn run build

代理设置

server {
	listen   80;
    charset utf-8;        
    server_name localhost;
     location / {
        root \dist; #网站的根目录
        index index.html; #默认文件
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

技术选型

技术 名称 官网
vue 渐进式 JavaScript 框架 https://cn.vuejs.org/
vue-router 路由 https://router.vuejs.org/
vuex 状态管理 https://vuex.vuejs.org/
element-ui 基于 Vue 2.0 的桌面端组件库 http://element-cn.eleme.io
Headroom 隐藏或展示页面元素 http://www.bootcss.com/p/headroom.js/

预览地址

https://gzq19981110.gitee.io/vue-front-end-portal

The MIT License (MIT) Copyright (c) 2018 laizuan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

vue前端门户网站啊。基本实现路由跳转等等功能! 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/unclezhou/vue-front-end-portal.git
git@gitee.com:unclezhou/vue-front-end-portal.git
unclezhou
vue-front-end-portal
vue前端门户网站
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891