当前位置:网站首页>Computed property “xxx“ was assigned to but it has no setter.
Computed property “xxx“ was assigned to but it has no setter.
2022-07-01 16:53:00 【chainnnn】
vue Use in vuex Store the data ,
And then to v-model Assignment control shows hidden discovery error 
Writing like this below will report an error , Change the writing method
<template>
<div class="head">
<el-radio-group v-model="isCollapse" @change="changeFold">
<el-radio-button :label="false" title=" an " v-show="isCollapse"
><i class="el-icon-s-unfold"></i
></el-radio-button>
<el-radio-button :label="true" title=" Fold " v-show="!isCollapse"
><i class="el-icon-s-fold"></i
></el-radio-button>
</el-radio-group>
</div>
</template>
<script>
import { mapState } from "vuex";
export default {
data() {
return {};
},
computed: {
...mapState(["isCollapse"]),
},
};
</script>
computed: {
isCollapse: {
get() {
return this.$store.state.isCollapse;
},
set() {
},
},
},
边栏推荐
- Detailed explanation of activity life cycle and startup mode
- Rhcsa Road
- Go 语言错误处理为什么更推荐使用 pkg/errors 三方库?
- SQL question brushing 586 Customers with the most orders
- FPN network details
- 数据库系统原理与应用教程(002)—— MySQL 安装与配置:MySQL 软件的卸载(windows 环境)
- Chinese diosgenin market forecast and investment strategy report (2022 Edition)
- C语言输入/输出流和文件操作
- PR basic clip operation / video export operation
- Endeavouros mobile hard disk installation
猜你喜欢

Redis Distributed Lock
![[flask introduction series] cookies and session](/img/2e/d50e0a032c4ec48935cb5df206a29b.png)
[flask introduction series] cookies and session

独家消息:阿里云悄然推出RPA云电脑,已与多家RPA厂商开放合作

sql刷题627. 变更性别

【C语言基础】12 字符串

数据库系统原理与应用教程(001)—— MySQL 安装与配置:MySQL 软件的安装(windows 环境)

模板引擎Velocity 基礎

游戏行业安全选择游戏盾,效果怎么样?

Principes et applications du système de base de données (006) - - compilation et installation de MySQL 5.7 (environnement Linux)

OJ questions related to complexity (leetcode, C language, complexity, vanishing numbers, rotating array)
随机推荐
Endeavouros mobile hard disk installation
How to solve the problem that the battery icon of notebook computer does not display
Rhcsa Road
Rhcsa Road
Défaillance lors du démarrage de la machine virtuelle VMware: le poste de travail VMware n'est pas compatible avec hyper - V...
Research and investment strategy report of hydroxypropyl beta cyclodextrin industry in China (2022 Edition)
UML tourism management system "suggestions collection"
Buuctf gold III
数据库系统原理与应用教程(005)—— yum 离线安装 MySQL5.7(Linux 环境)
Template Engine Velocity Foundation
如何使用phpIPAM来管理IP地址和子网
Leetcode 216 combined summation III -- backtracking method
EndeavourOS移动硬盘安装
How to restore the system of Sony laptop
Virtual serial port simulator and serial port debugging assistant tutorial "suggestions collection"
免费抽奖 | 《阿巴豆》探索未来系列盲盒数字版权作品全网首发!
AI高考志愿填报:大厂神仙打架,考生付费围观
Rhcsa Road
What are the differences between PHP and DW
用手机在同花顺上开户靠谱吗?这样有没有什么安全隐患