![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
vue
bug/异常排查修复笔记....
空 相
感谢你的关注
展开
-
property or method “xxxx“ is not defined
Property or method “xxxx“ is not definedvue控制台报这个错一般都是某个属性/方法没有定义导致<script> //导入cookie组件 import Cookies from "js-cookie"; export default { data() { return { maxLength: 6, ..............原创 2020-11-20 14:29:44 · 9208 阅读 · 1 评论 -
this.$confirm is not a function
Error in v-on handler: “TypeError: this.$confirm is not a function”控制台出现这个错误!!!原因:使用了消息提示框,没有引入MessageBoxlogout() { this.$confirm(`确定进行-[退出]-操作?`, "提示 :", { confirmButtonText: "确定", cancelButtonText: "取消",原创 2020-11-20 14:01:03 · 7599 阅读 · 2 评论 -
_this.setStore is not a function at eval
vue项目控制台报Uncaught (in promise) TypeError: _this.setStore is not a function at eval 错误!!!原因:this调用的setStore函数不是全局的不属于this对象,需要导入import {setStore} from "../libs/storage";直接setStore调用 setStore("userInfo", res.data.user);...原创 2020-11-05 14:00:11 · 1336 阅读 · 0 评论