vuex报错:‘xxx’was assigned to but it has no setter.
IT 报错 to No has xxx was Vuex
2023-09-14 09:04:07 时间
VM33737:37 [Vue warn]: Computed property "notificationSwitch" was assigned to but it has no setter.
found in
解决办法:
我是因为在vuex里面已经定义了。但是在页面的方法里面却使用了this.xxx去定义的就是错的。
改成这样既可:
this.$store.commit('SET_NOTIFICATIONSWITCH',true)
相关文章
- service mysqld start 报错:service mysqld start 报错 090517 13:34:15 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it. 090Can't open the mysql.plugin table. Please run mysql
- 《转》win7 安装ujson 出现的“error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27”
- yii2定时任务不执行,报错PHP date调用警告:It is not safe to rely on the system's timezone settings
- 报错Correct the classpath of your application so that it contains a single, compatible version of…
- 关于IT之家的说明
- {sharepoint}It may have been deleted or renamed by another user
- 【22】报错ERROR:./depthai_sdk is not a valid editable requirement. It should either be a path to a local
- new sap.m.Select - how is it implemented
- Atitit it sftwr dev 原则准则 principle 目录 第一章 简单原则 kiss1 第一节 . You Ain’t Gonna Need It(YAGNI)避免过度设计1
- Atitit it与互联网 的技术体系 目录 1. 概念范围 硬件 软件 应用1 1.1. 职业分类2 1.1.1. 软件类2 1.1.2. 硬件类2 1.1.3. 网络类2 1.1.4.
- 成功解决error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools“
- 成功解决building ‘snappy._snappy‘ extension error: Microsoft Visual C++ 14.0 is required. Get it with “B
- 为《31天成为IT服务达人》征求正式名字
- IT忍者神龟之Struts2.xml配置全然正确流程能走通可是有红叉解决
- 002-读书笔记-企业IT架构转型之道-阿里巴巴中台战略思想与架构实战-第二章 构建业务中台的基础-共享服务体系简介
- 作为一名成功的IT程序员,需要哪些必备技能呢?
- 小白的测试人生(三)小白如何进入IT行业及如何选择培训机构
- 网友:想转行IT行业是学习软件测试好,还是前端编程?
- PAT 1135 Is It A Red-Black Tree 【C++版】
- 已解决Could not find file with URI “/opt/data-integrationugins“ because it is a relative path
- U-GAT-IT中的一些细节以及变量含义
- 企业如何快速安全盘点混乱IT固定资产信息加固桌面终端安全-原始固定资产系统模式
- OTA系列小问答:为什么汽车OTA会比IT OTA发展要晚呢?汽车OTA与传统OTA有什么区别?FOTA与OTA区别在哪?