去掉Vue语法检查
摘要:注释掉 createLintingRule 方法里面的东西 const createLintingRule = () => ({ // test: /\.(js|vue)$/, // loader: 'eslint-loader', // enforce: 'pre', // include: [r
阅读全文
解决:sass-loader@6.0.6 requires a peer of node-sass@^4.0.0 but none is installed. You must install peer dependencies yourself.
摘要:参考:https://blog.csdn.net/hancoder/article/details/113821646 去https://github.com/sass/npnode-sass 或者 https://github.com/sass/node-sass/releases 都可以看到no
阅读全文
解决:npm ERR! chromedriver@2.27.2 install: `node install.js`
摘要:https://cdn.npmmirror.com/binaries/chromedriver/2.27/chromedriver_win32.zip 可以点击这个链接直接下载。 删掉项目中的 node_modules 文件夹。 根据自己的下载地址,安装依赖。 npm install chromed
阅读全文
使用debug模式启动后端java项目 debug模式调试
摘要:https://blog.51cto.com/u_16099172/6933023
阅读全文
nacos安装
摘要:下载地址 https://github.com/alibaba/nacos/releases/download/2.0.3/nacos-server-2.0.3.zip 解压软件压缩包 创建nacos数据库 1、创建nacos数据库 导入nacos-mysql数据库脚本 所在位置:在nacos中的c
阅读全文
docker 安装mysql
摘要:docker pull mysql docker images docker run -p 3306:3306 --name mysql --restart=always --privileged=true \ -v /usr/local/mysql/log:/var/log/mysql \ -v
阅读全文
解决:docker 443: connect: network is unreachable
摘要:1、配置镜像加速器 您可以通过修改daemon配置文件/etc/docker/daemon.json来使用加速器 sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": ["h
阅读全文
vuex中的this.$store.commit
摘要:https://blog.csdn.net/jingtian678/article/details/81481075
阅读全文
解决:TypeError: Cannot read properties of undefined (reading 'service')
摘要:vue 3.x 版本加载转圈圈实例有变更,按下面导入 import { ElLoading} from 'element-plus' this.loadingInstance = ElLoading.service({ target: '.main', text: '玩命加载中', backgrou
阅读全文
解决:vue/no-deprecated-v-bind-sync
摘要:如果在Vue2中是使用.sync这个语法糖实现,但是如果在Vue3里继续使用.sync的语法糖,eslint就会提示该语法糖已经被废弃了的错误,vue/no-deprecated-v-bind-sync 使用v-model进行父子组件的值双向绑定 https://juejin.cn/post/702
阅读全文
解决:el-pagination jumper 英文问题
摘要:原因:使用element-puls 的分页组件时,显示的是英文。 这是因为Element Plus components 默认使用英文。 解决: 在主页面组件修改如下: <template> <div class="main"> <el-config-provider :locale="locale
阅读全文
解决:Filters are deprecated.eslint-plugin-vue
摘要:原因:从vue3.0开始,过滤器就被移除了。 解决:使用方法调用或计算属性来替换它们。 <el-table-column prop="bookType" label="图书类型" width="100"> <template v-slot="scope"> <span>{{bookTypeFilte
阅读全文
vue 项目查看非登录页面权限控制
摘要:import router from './router/index' import {getUserInfo} from './api/login' router.beforeEach((to,from,next)=>{ //1.到本地获取token const token=localStorag
阅读全文
解决:`slot` attributes are deprecated.eslint-plugin-vue
摘要:用vue3.0做项目是发现:`slot`属性已弃用 但vue 3.0 增加了v-slot的指令,在 <template v-slot:dropdown>就可以了 <el-dropdown @command="handleCommand"> <span class="el-dropdown-link"
阅读全文
解决:easymock 打不开
摘要:用fastmock替换,网址:https://www.fastmock.site/#/ 注册登录就可以用了
阅读全文
解决:Uncaught TypeError: Cannot read properties of undefined (reading 'validate')
摘要:Vue的版本不同,写法不太一样 问题:用validate进行判定,结果没有生效 解决:el-form中没写ref=“loginForm” 加上,不用在ref前加:号 <template> <div id="login-container"> <el-form :rules="rules" ref="
阅读全文
vue 查询日期设置
摘要:<el-form-item label="出版日期" size="mini" prop="publicationdate"> <el-date-picker v-model="searchWhere.publicationdate" style="width:250px" type="dateran
阅读全文
VUE 利用 xlsx 和 file-saver 实现 Excel 表格的导入与导出
摘要:https://blog.csdn.net/Yzt_199626/article/details/116240469?utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~aggregatepage~first_rank_ec
阅读全文