退出登录 首页点击无反修改,发布岗位增加岗位类型

This commit is contained in:
francis_fh
2026-01-05 00:21:24 +08:00
parent 2ab6253fad
commit 2b9663db53
3 changed files with 93 additions and 32 deletions

View File

@@ -683,22 +683,38 @@ onMounted(() => {
// 获取企业信息
getCompanyInfo();
// pageNull.value = 0;
});
onUnmounted(() => {
uni.$off('showLoginModal');
});
onShow(() => {
// 监听退出登录事件,显示微信登录弹窗
uni.$on('showLoginModal', () => {
wxAuthLoginRef.value?.open();
pageNull.value = 0;
});
// 获取最新的企业信息
});
onMounted(() => {
// 在组件挂载时绑定事件监听,确保只绑定一次
// 先移除可能存在的旧监听,避免重复绑定
uni.$off('showLoginModal');
// 绑定新的监听
uni.$on('showLoginModal', () => {
console.log('收到showLoginModal事件打开登录弹窗');
wxAuthLoginRef.value?.open();
pageNull.value = 0;
});
// 获取企业信息
getCompanyInfo();
//四级联动单点及权限
getIsFourLevelLinkagePurview()
});
onUnmounted(() => {
// 组件销毁时移除事件监听
uni.$off('showLoginModal');
});
onShow(() => {
// 页面显示时获取最新的企业信息
getCompanyInfo();
// 四级联动单点及权限
getIsFourLevelLinkagePurview();
});
// 监听用户信息变化,当登录状态改变时重新获取企业信息
@@ -799,7 +815,6 @@ async function loadData() {
}
const pageNull = ref(0);
function scrollBottom() {
console.log('scrollBottom------')
if (loadmoreRef.value && typeof loadmoreRef.value.change === 'function') {
loadmoreRef.value.change('loading');
}