feat: 修改首页赋值逻辑
This commit is contained in:
@@ -47,10 +47,10 @@
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
flowList: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
// flowList: {
|
||||
// type: Array,
|
||||
// default: () => []
|
||||
// },
|
||||
showAdd: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
@@ -94,20 +94,19 @@
|
||||
menuList: {
|
||||
handler(val) {
|
||||
console.log(this.current,'this.current---')
|
||||
console.log(this.flowList,'this.flowList---')
|
||||
if (this.current != 0) this.cardData = this.flowList
|
||||
},
|
||||
immediate: true
|
||||
},
|
||||
flowList: {
|
||||
handler(val) {
|
||||
console.log(this.current,'this.current---')
|
||||
console.log(this.menuList,'this.menuList---')
|
||||
// if (this.current == 0) this.cardData = this.menuList
|
||||
this.cardData = this.menuList
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
// flowList: {
|
||||
// handler(val) {
|
||||
// console.log(this.current,'this.current---')
|
||||
// console.log(this.menuList,'this.menuList---')
|
||||
// // if (this.current == 0) this.cardData = this.menuList
|
||||
// this.cardData = this.menuList
|
||||
// },
|
||||
// immediate: true
|
||||
// }
|
||||
},
|
||||
created() {
|
||||
this.userInfo = uni.getStorageSync('userInfo') || {}
|
||||
@@ -124,8 +123,9 @@
|
||||
},
|
||||
tabChange(index) {
|
||||
this.current = index;
|
||||
if (this.tabType === 'menu') this.cardData = this.menuList
|
||||
if (this.tabType === 'flow') this.cardData = this.flowList
|
||||
// if (this.tabType === 'menu')
|
||||
this.cardData = this.menuList
|
||||
// if (this.tabType === 'flow') this.cardData = this.flowList
|
||||
},
|
||||
clickItem(item) {
|
||||
this.$emit('launch', {
|
||||
|
||||
Reference in New Issue
Block a user