|
|
@@ -62,8 +62,7 @@
|
|
|
<script>
|
|
|
import CustomTabbar from '@/components/cjx/tabbar_hexiao_ywy.vue';
|
|
|
import {clearAdminToken, getAdminInfo} from "@/utils/auth";
|
|
|
- import {getAdminUserInfo} from "@/api/hexiao";
|
|
|
-
|
|
|
+import {getAdminUserInfo,logoutAPi} from "@/api/hexiao";
|
|
|
export default {
|
|
|
components: {
|
|
|
CustomTabbar
|
|
|
@@ -144,7 +143,10 @@ export default {
|
|
|
success: (res) => {
|
|
|
if (res.confirm) {
|
|
|
console.log('用户点击确定,执行退出登录操作');
|
|
|
- clearAdminToken();
|
|
|
+ logoutAPi().then(res=>{
|
|
|
+ clearAdminToken();
|
|
|
+ })
|
|
|
+
|
|
|
// 跳转到登录页
|
|
|
uni.reLaunch({
|
|
|
url: '/pages/hexiao/login?uid='+self.tenantId // 请替换为您的登录页路径
|