当前位置:网站首页>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() {
},
},
},
边栏推荐
- SQL question brushing 1050 Actors and directors who have worked together at least three times
- VMware 虚拟机启动时出现故障:VMware Workstation 与 Hyper-v 不兼容...
- Principes et applications du système de base de données (006) - - compilation et installation de MySQL 5.7 (environnement Linux)
- What is the effect of choosing game shield safely in the game industry?
- SQL question brushing 627 Change gender
- Template Engine Velocity Foundation
- How does go use symmetric encryption?
- 机器学习11-聚类,孤立点判别
- Bugku's file contains
- Stegano in the world of attack and defense
猜你喜欢
[JetsonNano] [教程] [入门系列] [三] 搭建TensorFlow环境
Hi Fun Summer, play SQL planner with starrocks!
[observation] where is the consulting going in the digital age? Thoughts and actions of softcom consulting
Tutorial on principles and applications of database system (006) -- compiling and installing MySQL 5.7 (Linux Environment)
Rhcsa Road
Introduction to software engineering - Chapter 6 - detailed design
Alibaba cloud, Zhuoyi technology beach grabbing dialogue AI
C language input / output stream and file operation
数据库系统原理与应用教程(001)—— MySQL 安装与配置:MySQL 软件的安装(windows 环境)
Buuctf gold III
随机推荐
Redis6.0 new features
虚拟串口模拟器和串口调试助手使用教程「建议收藏」
Red team Chapter 8: blind guess the difficult utilization process of the package to upload vulnerabilities
Rhcsa Road
Origin2018安装与使用(整理中)
[flask introduction series] cookies and session
你还在用收费的文档管理工具?我这有更牛逼的选择!完全免费
Leetcode 216 combined summation III -- backtracking method
How to optimize repeated if err in go language= Nil template code?
SystemVerilog structure (II)
阿里云、追一科技抢滩对话式AI
Chinese diosgenin market forecast and investment strategy report (2022 Edition)
数据库系统原理与应用教程(006)—— 编译安装 MySQL5.7(Linux 环境)
[JetsonNano] [教程] [入门系列] [三] 搭建TensorFlow环境
Tutorial on principles and applications of database system (004) -- MySQL installation and configuration: resetting MySQL login password (Windows Environment)
Judge whether a binary tree is a balanced binary tree
How to use F1 to F12 correctly on laptop keyboard
SQL question brushing 584 Looking for user references
Why is the pkg/errors tripartite library more recommended for go language error handling?
Zabbix2.2监控之系统及应用日志监控报警