摘要: 全局安装指令: npm install -g yarn 要指定版本的话在后面加入版本后就行,比如安装1.22.17版本的:npm install -g yarn@1.22.17 安装nvm后再安装yarn会遇到'yarn' 不是内部或外部命令,需要 1)把nvm安装路径下node_global的ya 阅读全文
posted @ 2023-03-09 09:48 zzwlong 阅读(1951) 评论(0) 推荐(0) 编辑
摘要: vue中proxy代理的理解 今天开发的时候 意外发现对vue的代理有了新的理解,以前都是很模糊的状态,先看图吧。 1、proxy里面是个大对象,如果有多个代理,直接在后面加子对象,实际开发中可能不止接口代理还有图片上传下载代理。2、整个代理流程如何?①首先得知道什么是代理,为什么需要代理?代理:顾 阅读全文
posted @ 2022-11-03 10:59 zzwlong 阅读(813) 评论(0) 推荐(0) 编辑
摘要: 直接用官网或git上的教程不能直接本地运行起来,要按照以下步骤才可以: 1、在github下载好代码2、按照github提示那样,分别npm install -g pnpm、 pnpm bootstrap,先不要pnpm playground,要不然会报找不到lis的错3、在根目录npm run b 阅读全文
posted @ 2022-10-28 10:08 zzwlong 阅读(1092) 评论(0) 推荐(0) 编辑
摘要: 使用admin-element-vue的页签时,会发现切换页签会自动刷新页面,其实也可以不刷新的 1、在src\layout\components\AppMain.vue里 <router-view :key="key"> <router-view /> </router-view>改为 <keep 阅读全文
posted @ 2021-11-25 11:08 zzwlong 阅读(3480) 评论(0) 推荐(0) 编辑
摘要: 需求:el-form里面el-form-item的数据基本可以重复,可以遍历生成,el-form-item里面有下拉和input,选择某个下拉出现input,某个下拉隐藏input,如下图: 思路:动态生成el-form-item,并在el-form-item绑定校验规则 <el-form ref= 阅读全文
posted @ 2021-11-22 19:02 zzwlong 阅读(5099) 评论(0) 推荐(1) 编辑
摘要: 如果带参数跳转的页面是tag下的页面时,切换tag不会路由切换,切换tag页时url上的参数还是会在,切换时去掉跳转时带的参数用: location.replace(location.href.replace(location.hash, `#${this.$route.path}`)) `#${t 阅读全文
posted @ 2021-11-22 16:41 zzwlong 阅读(3353) 评论(0) 推荐(0) 编辑
摘要: 一、get请求下载: window.open(url, params) 二、post请求下载 创建一个a标签下载axios({ url: url, method: 'post', data: data, responseType: 'blob' }).then(res => { let blob = 阅读全文
posted @ 2021-11-11 16:22 zzwlong 阅读(2933) 评论(0) 推荐(0) 编辑
摘要: IDEA下载刚刚使用,点击项目下的文件夹右键的new是没有Directory那一栏的,所以得设置一下 1)File ==> Project Structure 2)Modeles ==> 右边项目 ==> Resources ==> OK 操作完项目的目录右下角会有几横线,over~ 阅读全文
posted @ 2021-10-28 14:49 zzwlong 阅读(2937) 评论(0) 推荐(0) 编辑
摘要: vue3提供了getCurrentInstance ,通过这个属性,找到全局属性globalProperties import { getCurrentInstance } from 'vue' const instance = getCurrentInstance() const _this= i 阅读全文
posted @ 2021-07-08 19:03 zzwlong 阅读(7342) 评论(0) 推荐(0) 编辑
摘要: 一、自定义工具栏把toolbar在vue的data return里配置就可以; 二、用vue-quill-editor写出来的邮件,发出去之后字体样式变了,那是应该vue-quill-editor改变字体的font-family没绑定在style上,而是通过class来改变的,这个class只有vu 阅读全文
posted @ 2020-12-30 14:32 zzwlong 阅读(4111) 评论(0) 推荐(1) 编辑