马边自来水有限公司综合门户网站

zjz 0ff877fd45 1、服务器IP变更 1 개월 전
build dd330aefde 上传 2 년 전
public d88d761d35 pull 2 년 전
src 0ff877fd45 1、服务器IP变更 1 개월 전
theme dd330aefde 上传 2 년 전
.editorconfig dd330aefde 上传 2 년 전
.env.development dd330aefde 上传 2 년 전
.eslintrc.js dd330aefde 上传 2 년 전
.gitignore 12f3dee31b 提交 2 년 전
README.md dd330aefde 上传 2 년 전
babel.config.js dd330aefde 上传 2 년 전
debug.log dd330aefde 上传 2 년 전
dist.rar 08e0fa09b8 7.5 2 년 전
element-variables.scss dd330aefde 上传 2 년 전
jest.config.js dd330aefde 上传 2 년 전
jsconfig.json dd330aefde 上传 2 년 전
npm-debug.log dd330aefde 上传 2 년 전
package-lock.json dd330aefde 上传 2 년 전
package.json 0ff877fd45 1、服务器IP变更 1 개월 전
postcss.config.js dd330aefde 上传 2 년 전
vue.config.js 849aa5a8ca 修改备案号 1 년 전
web.config 849aa5a8ca 修改备案号 1 년 전

README.md

安装依赖

npm install

建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题

npm install --registry=https://registry.npm.taobao.org

安装 html2canvas

npm install --save html2canvas

启动服务

npm run dev

启动服务报错缺少 core-js 运行

npm install core-js@2

启动服务报错 node-sass 运行

cnpm install node-sass@latest

启动服务报错缺少 gifler-js 运行

npm install gifler@0.1.0

启动服务报错缺少 viewerjs-js 运行 (插件说明:图片预览展示)

npm install viewerjs

启动服务报错缺少 shapefile-js 运行 (插件说明:离线加载水系地图)

npm install shapefile

监听元素变化的插件

npm install element-resize-detector

启动服务报错缺少 hls.js 运行 (插件说明:安装摄像头视频播放插件)

npm install hls.js --save

发布

预览发布环境效果

npm run preview

预览发布环境效果 + 静态资源分析

npm run preview -- --report

代码格式检查

npm run lint

代码格式检查并自动修复

npm run lint -- --fix

构建测试环境

npm run build:stage

构建生产环境(服务器)

npm run build:prod