随笔分类 - 报错
摘要:1、在搜索Windows PowerShell,右键 “以管理员身份运行” 2、在命令框中输入 set-ExecutionPolicy RemoteSigned 3、输入 y 4、再重新使用cnpm
阅读全文
摘要:我的操作: let h5URL = 'www.baidu.com' // 在挂断事件里面调用它window.location.herf = h5URL // 结果输出到页面location: 8880/#/www.baidu.com // 后来尝试加了协议let h5URL = "http://ww
阅读全文
摘要:vue项目启动执行时报错找不到图片,error in ./src/assets/images/logo.png 解决: 先卸载再重新安装image-webpack-loader npm uninstall image-webpack-loader cnpm install image-webpack
阅读全文
摘要:报错信息: npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! gifsicle@5.2.1 postinstall: `node lib/install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Fa
阅读全文
摘要:问题: 使用vscode 用git 拉取代码,提示:在签出前,请清理存储库工作树 解决方法: 1. 手动解决: ①git stash 先将本地修改存储起来 ②git pull 拉取远程 ③git stash pop 还原暂存内容 2. 放弃本地修改,直接覆盖 ①git reset --hard ②g
阅读全文
摘要:问题: 当时用的是 window.open()这个方法,因为自己的是安卓手机,测试后能跳转就没管了。 后来同事发现苹果手机在微信端跳转不了。 跳转的代码: window.open('www.baidu.com'); //跳转代码 解决办法: 因为微信端是微信自己的浏览器,或多或少存在一些兼容和性能的
阅读全文
摘要:问题: 解决方法: 安装webpack:npm install webpack-cli -g 检查webpack版本: webpack -v
阅读全文
摘要:问题说明: $ git pull origin master error: Pulling is not possible because you have unmerged files.hint: Fix them up in the work tree, and then use 'git ad
阅读全文
摘要:实例: 报错:Cannot read property 'itemGroupList' of undefined" 解决方法:在itemGroupList上一层判断一下父级元素 <div v-if="table2.itemCat"> <div v-for="(itemgrounp,indexgrou
阅读全文
摘要:1.在项目根目录下右键+在此处打开powershell窗口 2. npm 3.npm init -f 初始化命令 -f 表示全部输入默认值 4. npm install --production docxtemplater构建npm项目的配置文件,作用好像是按需加载 ——>这个命令生成了一个xxx.
阅读全文
摘要:在vue中遇到Uncaught (in promise) undefined这个报错 解决方案:npm i vue-router@3.0 -S
阅读全文