feat: 修改首页赋值逻辑
This commit is contained in:
@@ -93,13 +93,18 @@
|
|||||||
watch: {
|
watch: {
|
||||||
menuList: {
|
menuList: {
|
||||||
handler(val) {
|
handler(val) {
|
||||||
|
console.log(this.current,'this.current---')
|
||||||
|
console.log(this.flowList,'this.flowList---')
|
||||||
if (this.current != 0) this.cardData = this.flowList
|
if (this.current != 0) this.cardData = this.flowList
|
||||||
},
|
},
|
||||||
immediate: true
|
immediate: true
|
||||||
},
|
},
|
||||||
flowList: {
|
flowList: {
|
||||||
handler(val) {
|
handler(val) {
|
||||||
if (this.current == 0) this.cardData = this.menuList
|
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
|
immediate: true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -392,6 +392,7 @@
|
|||||||
getMenuData().then((res) => {
|
getMenuData().then((res) => {
|
||||||
const list = res?.data
|
const list = res?.data
|
||||||
this.homeData = list
|
this.homeData = list
|
||||||
|
console.log(this.homeData,'homeData----')
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user