ES6-promise基础用法
摘要:https://wenku.baidu.com/view/662a0e4e021ca300a6c30c22590102020740f26f.html
阅读全文
从淘宝下载vue依赖
摘要:npm install --registry=https://registry.npm.taobao.org
阅读全文
vue中@click.native.prevent说明
摘要:元素中绑定了这个事件 <el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;" @click.native.prevent="handleLogin">登录</el-button> 1、在封
阅读全文
Feign介绍与总结
摘要:1. Feign基本简介: Feign 受Retrofit、JAXRS-2.0 和Web Socket 的影响, 采用了声明式API 接口的风格, 将Java Http 客户端绑定到它的内部。 Feign 的首要目标是将Java Http客户端调用过程变得简单。 Feign 的源码地址:https:
阅读全文
解决:vue3-解决elementui组件中文问题
摘要:import { createApp } from 'vue' import App from './App.vue' import router from './router' import store from './store' import axios from 'axios' import
阅读全文
vue3.x安装element
摘要:npm install element-plus --save https://element-plus.gitee.io/zh-CN/guide/installation.html#%E4%BD%BF%E7%94%A8%E5%8C%85%E7%AE%A1%E7%90%86%E5%99%A8
阅读全文
解决:should always be multi-word vue/multi-word-component-names
摘要:编辑 .eslintrc.js , overrides: [ { files: ['src/components/**/*.vue'], rules: { 'vue/multi-word-component-names': 0, }, }, ]
阅读全文
vue设置反向代理解决跨域请求关键代码
摘要:在vue项目的根节点下创建vue.config.js文件。 module.exports = { devServer: { proxy: { ///api是后端数据接口的上下文路径 '/api': { //这里的地址是后端数据接口的地址 target: 'http://111.229.37.167/
阅读全文
解决VUE:127.0.0.1 未发送任何数据
摘要:查看控制台是否是因为X-Frame-Options的设置,因为spring security默认是不允许页面被嵌套的,所以X-Frame-Options被默认设置为DENY,这个可以在后台WebSecurityConfig配置类通过http.headers().frameOptions().disa
阅读全文
解决:in ./node_modules/vuex/dist/vuex.esm-browser.js 1077:9-14 "export 'watch' was not found in 'vue'
摘要:原因:vuex安装版本太高了 解决: 将vuex卸载,安装时指定版本 停止运行,按 ctrl + c ,输入 y 如果是 npm 安装的话可以使用 npm uninstall vuex 安装 vuex3 cnpm install vuex@3
阅读全文
解决:in ./node_modules/vue-i18n/dist/vue-i18n.esm-bundler.js 1109:18-19 "export '
摘要:这是i18n版本太高了,与当前VUE版本不谦容; 解决: 查看版本:npm view vue-i18n versions 选择其中一个低版本,不要太低的; 我的项目vue版本是:2.6.14,选择的vue-i18n如下: npm install vue-i18n@8.23.0
阅读全文
测试Mockjs用法的关键代码
摘要:import Mock from 'mockjs' Mock.mock('http://localhost:8080/user', { 'name': '@name', // 随机生成姓名 'name': '@email', // 随机生成邮箱 'age|1-10': 5, // 年龄1-10之间
阅读全文
'mock' is declared but its value is never read.
摘要:解决方法如下,点击设置,搜索vetur 然后把Validate js/ts in <script>这一项的✔号去掉
阅读全文
安装Mock.js
摘要:cnpm install --save mockjs yarn add mockjs -dev import Mock from 'mockjs' Mock.mock('http://localhost:8080/user', { 'name': '@name', // 随机生成姓名 'name':
阅读全文
安装axios
摘要:yarn add axios <template> <div class="page"> <h2>Home Page</h2> <el-button type="primary" @click="testAxios()">测试Axios调用</el-button> <el-button type="
阅读全文
Module build failed: Error: Node Sass version 7.0.1 is incompatible with ^4.0.0.
摘要:原因:node-sass和sass-loader版本冲突了 解决: //卸载掉 npm uninstall sass-loader node-sass cnpm uninstall sass-loader node-sass //执行 cnpm install sass-loader@7.3.1 s
阅读全文
安装SCSS
摘要:npm install node-sass --save-dev //安装node-sass npm install sass-loader --save-dev //安装依赖包sass-loader npm install style-loader --save-dev //安装style-loa
阅读全文