|  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <!--        <div class="box_out"><span>退出登录</span></div>--> | 
|---|
|  |  |  | <div class="box_out" v-if="store.state.env && (store.state.env == 'WX' || store.state.env == 'XCX')" @click="loginOut"><span>退出登录</span></div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <van-popup v-model:show="show" position="bottom" round :style="{ height: '50%' }"> | 
|---|
|  |  |  | <van-picker | 
|---|
|  |  |  | 
|---|
|  |  |  | import { Dialog, Toast } from 'vant' | 
|---|
|  |  |  | const VanDialog = Dialog.Component; | 
|---|
|  |  |  | import { changeCom, getDepartmentListByConditon } from '@/apis/PersonalAPI' | 
|---|
|  |  |  | import { wxLoginOut } from '@/apis' | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const router = useRouter() | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 退出登录 | 
|---|
|  |  |  | const loginOut = () => { | 
|---|
|  |  |  | wxLoginOut({ | 
|---|
|  |  |  | companyUserId: store.state.userInfo.companyUser.id | 
|---|
|  |  |  | }).then(res => { | 
|---|
|  |  |  | if (res.code === 200) { | 
|---|
|  |  |  | // window.parent.postMessage('阿康', '*') | 
|---|
|  |  |  | let href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx6ea339a336f26380&redirect_url=https://www.mes.red/h5/redirect.html&response_type=code&scope=snsapi_base&state=#wechat_redirect' | 
|---|
|  |  |  | window.open(href) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 关闭组织弹框 | 
|---|
|  |  |  | const onCancel = (): void => { | 
|---|
|  |  |  | show.value = false | 
|---|