|
@@ -141,6 +141,7 @@ export default {
|
|
|
}
|
|
|
// 检查是否是初始化,如果是初始化(由上级来),需要检查classid是不是在这里,不在就清除掉
|
|
|
const r = this.classList.find(f => f._id === classid);
|
|
|
+ console.log(r);
|
|
|
if (!r) this.toClear('classid');
|
|
|
if (this.needInit) {
|
|
|
this.checkToday();
|
|
@@ -160,7 +161,8 @@ export default {
|
|
|
sessionStorage.setItem('needInit', false);
|
|
|
},
|
|
|
toClear(type) {
|
|
|
- this.$set(this, `options`, _.omit(this.topOptions, type));
|
|
|
+ this.topOptions.classid = undefined;
|
|
|
+ // this.$set(this, `topOptions`, _.omit(this.topOptions, type));
|
|
|
},
|
|
|
// setVuexOpt() {
|
|
|
// console.log(this.topOptions);
|