feat: 修改接口报错登出问题,优化切换数据刷新问题

This commit is contained in:
chenli
2026-01-30 17:06:39 +08:00
parent 527747259c
commit 43a645ec87
4 changed files with 147 additions and 106 deletions

View File

@@ -66,6 +66,10 @@
type: [String, Number],
default: '0'
},
current: {
type: [String, Number],
default: '0'
},
},
data() {
return {
@@ -100,7 +104,8 @@
id: businessId,
name: name,
btnType: 'btn_process',
current: this.category
current: this.category,
tabCurrent: this.current
}
uni.navigateTo({
url: '/pages/apply/dynamicModelList/form?config=' +

View File

@@ -18,7 +18,7 @@
</view>
<mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback" :down="downOption"
:up="upOption" :top="mescrollTop">
<flowlist :list='list' :swipeAction='current != 3' :category='category' />
<flowlist :list='list' :swipeAction='current != 3' :category='category' :current='current' />
</mescroll-body>
</view>
</template>
@@ -76,12 +76,18 @@
onShow() {
const fromNonTabBar = uni.getStorageSync('fromNonTabBar');
console.log(fromNonTabBar,'fromNonTabBar---')
this.current = fromNonTabBar && Number(fromNonTabBar)
// if(!fromNonTabBar){
// this.current = 1
// }else {
// this.current = 0
// }
if(fromNonTabBar == ''){
this.current = 1
this.category = '2'
}else {
this.current = Number(fromNonTabBar)
this.category = Number(fromNonTabBar) + 1+''
}
const page = {
num : 1,
size: 20
}
this.upCallback(page)
uni.removeStorageSync('fromNonTabBar');
uni.$off('operate')
uni.$on('refresh', () => {
@@ -91,6 +97,10 @@
},
onUnload() {
uni.$off('refresh')
uni.removeStorageSync('fromNonTabBar');
},
onHide() {
uni.removeStorageSync('fromNonTabBar');
},
methods: {
getFlowStatus(status) {