# 电力猫 **Repository Path**: patrickwang/homeplug ## Basic Information - **Project Name**: 电力猫 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-07-27 - **Last Updated**: 2021-06-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # homeplug > A Vue.js project ## Build Setup ``` bash # install dependencies npm install # serve with hot reload at localhost:8080 npm run dev # build for production with minification npm run build # build for production and view the bundle analyzer report npm run build --report # run unit tests npm run unit # run e2e tests npm run e2e # run all tests npm test ``` For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). ## 轮询查询当前wifi是否为电力猫wifi 1. 在main.js发起轮询 2. 可能出现的问题,轮询的接口为http://192.168.101.1/goform/checkQwifi与请求的接口域名不一致,在可能会引起跨域问题,如果有跨域问题,把请求方式换为jq的getJson即可解决跨域问题 ## 本项目主要采用的插件为 1. ajax请求插件 axios 2. 移动ui框架 vant ui ## 项目开发环境和线上环境部署 1. 使用npm install 2. 使用npm run dev 之后点击网址即可进入开发环境 3. 如果npm run dev 出现下面问题 ``` npm: no such file or directory, scandir '.../node_modules/node-sass/vendor' ``` 在运行一下 npm rebuild node-sass 即可 4. 使用npm run build 之后dist文件夹会出现 static文件夹和index.html ,将这两个文件夹上传到云服务器即可