zhengyiming
2025-02-21 456de36d8e21416cdd2439437bdfd9460dcd15be
apps/taro/src/pages/mine/index.vue
@@ -18,8 +18,9 @@
      </div>
    </div>
    <ContentScrollView>
      <List class="mine-list-wrapper">
      <List class="mine-list-wrapper" v-if="isLogin">
        <ListItem title="订单管理" @click="goOrderManage"></ListItem>
        <ListItem title="退出登录" @click="goLogout"></ListItem>
      </List>
    </ContentScrollView>
  </PageLayoutWithBg>
@@ -33,10 +34,13 @@
import DefaultAvatar from '@/assets/components/icon-default-avatar.png';
import { useSystemStore } from '@/stores/modules/system';
import PageLayoutWithBg from '@/components/Layout/PageLayoutWithBg.vue';
import { useUserStore } from '@/stores/modules/user';
import { useUserStoreWithOut } from '@/stores/modules/user';
const { userDetail } = useUser();
const isLogin = useIsLogin();
const systemStore = useSystemStore();
const userStore = useUserStore();
const { goLoginFn } = useGoLogin();
const bgHeight = computed(() => 133 + systemStore.navHeight);
@@ -66,6 +70,11 @@
});
function goOrderManage() {}
function goLogout() {
  userStore.logout();
  useUserStoreWithOut().logout();
}
</script>
<style lang="scss">