当前位置:网站首页>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() {
},
},
},
边栏推荐
- 数据库系统原理与应用教程(003)—— MySQL 安装与配置:手工配置 MySQL(windows 环境)
- Internet News: "20220222" get together to get licenses; Many products of Jimi have been affirmed by consumers; Starbucks was fined for using expired ingredients in two stores
- Sword finger offer II 015 All modifiers in the string
- Judge whether a binary tree is a balanced binary tree
- Determine whether the linked list is a palindrome linked list
- Graduation season | Huawei experts teach the interview secret: how to get a high paying offer from a large factory?
- 判断二叉树是否为二叉搜索树
- [live broadcast appointment] database obcp certification comprehensive upgrade open class
- VMware 虚拟机启动时出现故障:VMware Workstation 与 Hyper-v 不兼容...
- How to maintain the laptop battery
猜你喜欢

Flux d'entrées / sorties et opérations de fichiers en langage C

Redis Distributed Lock

Tutorial on the principle and application of database system (003) -- MySQL installation and configuration: manually configure MySQL (Windows Environment)

Comprehensively view the value of enterprise digital transformation

【C语言基础】12 字符串

SystemVerilog-结构体(二)

PR basic clip operation / video export operation

Internet News: "20220222" get together to get licenses; Many products of Jimi have been affirmed by consumers; Starbucks was fined for using expired ingredients in two stores

免费抽奖 | 《阿巴豆》探索未来系列盲盒数字版权作品全网首发!

How to use F1 to F12 correctly on laptop keyboard
随机推荐
嗨 FUN 一夏,与 StarRocks 一起玩转 SQL Planner!
SQL question brushing 586 Customers with the most orders
China nylon 11 industry research and future forecast report (2022 Edition)
sql刷题1050. 合作过至少三次的演员和导演
SQL question brushing 1050 Actors and directors who have worked together at least three times
数据库系统原理与应用教程(006)—— 编译安装 MySQL5.7(Linux 环境)
GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速
What is the effect of choosing game shield safely in the game industry?
Template Engine Velocity Foundation
P2893 [usaco08feb] making the grade g (DP & priority queue)
Tutorial on the principle and application of database system (003) -- MySQL installation and configuration: manually configure MySQL (Windows Environment)
Flux d'entrées / sorties et opérations de fichiers en langage C
Golang爬虫框架初探
China benzene hydrogenation Market Research and investment forecast report (2022 Edition)
Internet News: "20220222" get together to get licenses; Many products of Jimi have been affirmed by consumers; Starbucks was fined for using expired ingredients in two stores
毕业季 | 华为专家亲授面试秘诀:如何拿到大厂高薪offer?
OJ questions related to complexity (leetcode, C language, complexity, vanishing numbers, rotating array)
How does go use symmetric encryption?
Zabbix2.2 monitoring system and application log monitoring alarm
SystemVerilog-结构体(二)