会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wpt80
联系
管理
订阅
2022年1月21日
Vue项目本地预览
摘要: 要打包预览 ,nginx 临时故障 ,一时半会儿解决不了怎么办? 头大 还好发现了serve npm install -g serve serve -s dist -s 参数的意思是将其架设在 Single-Page Application 模式下 这个模式会处理即将提到的路由问题
阅读全文
posted @ 2022-01-21 11:36 wpt80
阅读(112)
评论(0)
推荐(0)
2021年10月28日
怎么解决 ? null, message from server: "Host '***.***.***.***' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'"
摘要: 引起 : 测试环境和生产环境共同使用同一个数据库 , 测试使用的是远程,生产使用的是localhost 粗略分析: 1、 同一个ip在短时间内产生太多中断的数据库连接而导致的阻塞 2、超过了mysql数据库max_connection_errors的最大值 解决方法 直接 flush hosts 清
阅读全文
posted @ 2021-10-28 16:15 wpt80
阅读(3459)
评论(0)
推荐(0)
2020年9月27日
Flutter混合开发 怎么开启热更新?
摘要: 进入终端 ,cd 到flutter module项目 的根目录然后执行命令 flutter attach r : 热加载; R : 热重启; h : 获取帮助; d : 断开连接 c : 清屏 终端的屏幕 q : 退出 终端也会结束 flutter 结束
阅读全文
posted @ 2020-09-27 11:48 wpt80
阅读(942)
评论(0)
推荐(0)
2020年3月20日
vue 每个单页面的标题
摘要: 因为要开发移动端的网站,需要每个页面都要有标题,怎么操作呢? 有两种方法 首先要在路由里面添加标题 path: '/useragreement', component: resolve = require(['@/page/h5/userAgreement'], resolve), meta:{ t
阅读全文
posted @ 2020-03-20 17:18 wpt80
阅读(327)
评论(0)
推荐(0)
2020年3月13日
IOS 模拟器怎么录屏呢?
摘要: 在终端 cd 到文件要保存的文件夹 输入命令: xcrun simctl io booted recordVideo ios.mov 停止录屏:control + c 然后 ls all 就发现多了个ios.mov 文件,进入文件夹进行播放
阅读全文
posted @ 2020-03-13 11:02 wpt80
阅读(1661)
评论(0)
推荐(0)
Flutter--- 启动页
摘要: 最近看见好多人都在用Flutter,这几天也把玩下,闲话少叙,切入正题: 写一个启动页: 第一:配置flutter 环境这个不讲了 https://flutterchina.club/get started/install/ 这个网站上都有我是Android 开发者习惯用AS 首先创建一个AS 工程
阅读全文
posted @ 2020-03-13 10:00 wpt80
阅读(2487)
评论(0)
推荐(0)
2020年1月15日
git 清空本地缓存
摘要: 清除本地缓存提交 git rm r cached .idea/ git add . git commit m 'delete .idea' git push u origin master f //强制提交
阅读全文
posted @ 2020-01-15 16:38 wpt80
阅读(14815)
评论(0)
推荐(0)
Vue打包或保存频繁内存溢出情况CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
摘要: CALL_AND_RETRY_LAST Allocation failed JavaScript heap out of memory 频繁内存溢出,出现此种情况,项目太大,导致内存溢出,排除代码问题外 第一步安装:increase memory limit npm install g increa
阅读全文
posted @ 2020-01-15 14:23 wpt80
阅读(645)
评论(0)
推荐(0)
vue 出现 Cannot GET / 的问题
摘要: 前提是终端没有报错,修改方法如下: 修改config文件夹下面的index.js里面,把 assetsPublicPath: './'改成“ assetsPublicPath: '/' 然后重新 npm run 跑一下就可以了 遇到这个问题的时候 看到CSDN上的一篇博客,好像这种情况下也会出现 C
阅读全文
posted @ 2020-01-15 11:55 wpt80
阅读(12359)
评论(1)
推荐(0)
npm run build打包页面空白
摘要: 原因:页面head中引用的js和css文件是出现了路径错误,这里修改如下: 解决位置: config/index.js文件:把assetsPublicPath: '/'改为assetsPublicPath: './' 改完后是这个样样子 build: { assetsPublicPath: './'
阅读全文
posted @ 2020-01-15 10:51 wpt80
阅读(760)
评论(0)
推荐(0)
下一页
公告