ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
``` watch: { formValue: { deep: true, handler(newV, oldV) { console.log(newV.sheji) console.log(oldV.sheji) } } }, ``` 对象必须要设置深度模式才能获取到值 ``` <el-row :gutter="100"> <el-col style="margin-bottom: 20px;" :span="6" v-for="(o, index) in 8" :key="o" > <el-radio-group v-model="formValue.sheji"> <el-card :class="Imgid == index?'ka':''" :body-style="{ padding: '20px' }" shadow="hover"> <div v-show="Imgid == index" slot="header" class="clearfix"> <span style="color: #409EFF;">使用中</span> </div> <img :src="img_src+'1'+'-'+o+'.png'" class="image"> <div style="padding: 25px;"> <span style="font-size: 13px;margin-bottom: 20px;">{{img_text[index]}}</span> <div class="bottom clearfix "> <el-radio style="font-size: 13px;margin-top: 20px;" :label="o" border>设置默认</el-radio> <!-- <el-button style="font-size: 13px;margin-top: 20px;" @click="getImgid(index)" type="primary" plain size="small" class="button">设置默认</el-button> --> </div> </div> </el-card> </el-radio-group> </el-col> </el-row> ``` ``` formValue: { goods_title: "", goods_categoryid: '', goods_original: 0, goods_price: 0, goods_reserve: 0, goods_showsales: 0, goods_sort: 0, goods_msrc: [], goods_status: 0, goods_istop: 1, goods_contents: '', sku: [], links: [], list1: [], sheji: 0 }, ```