随笔分类 -  vue

vuex多模块 调用 mapMutations的操作实例
摘要:参考 import { mapState, mapMutations } from "vuex"; computed: { ...mapState({ theme: (state) => state.settings.theme, sideTheme: (state) => state.settin 阅读全文
posted @ 2021-12-22 14:51 努力才会进步 阅读(986) 评论(0) 推荐(0)
若依框架点击左侧菜单栏,会有以下报错信息。。Error in nextTick: “TypeError: undefined is not iterable (cannot read property Symbol
摘要:找到src\layout\components\TagsView\index.vue(加上一个判断 if (tags)) moveToCurrentTag() { const tags = this.$refs.tag; // 解决 undefined is not iterable if(tags 阅读全文
posted @ 2021-12-22 14:47 努力才会进步 阅读(1927) 评论(0) 推荐(0)
vue img 图片需要自定义请求头
摘要:今天做项目遇到个问题 请求的图片需要加个请求头参数才行 百度一番 找到一个有点用的参考地址 https://blog.csdn.net/qq_41499782/article/details/113584518 跟我想的差不多 大概意思就是把图片地址用axios加上请求头请求一次 下面是参考博主所记 阅读全文
posted @ 2021-08-25 17:00 努力才会进步 阅读(5475) 评论(0) 推荐(1)