{"code":"import { defineComponent } from \"vue\";\nimport { logout, isToken } from \"@/api\";\nexport default defineComponent({\n    data() {\n        return {\n            avatar: '',\n            nickName: '',\n            aboutUs: '',\n            popupNoCancelShow: false,\n        };\n    },\n    mounted() {\n        isToken();\n        this.avatar = getApp().usrInfo.avatar;\n        this.nickName = getApp().usrInfo.nickName;\n        this.aboutUs = getApp().aboutUs;\n    },\n    methods: {\n        showModal() {\n            this.popupNoCancelShow = true;\n        },\n        getConfirm() {\n            this.popupNoCancelShow = false;\n        },\n        closeModal() {\n            this.popupNoCancelShow = false;\n        },\n        logout() {\n            uni.showModal({\n                title: '提示',\n                content: '确定要退出登录吗？',\n                success: (res) => {\n                    if (res.confirm) {\n                        logout().then((res = null) => {\n                            if (res.success) {\n                                uni.showToast({\n                                    title: '退出登录成功',\n                                    icon: 'success',\n                                    success: () => {\n                                        // 这里可以添加退出登录的逻辑，例如清除用户登录状态\n                                        uni.clearStorageSync();\n                                        setTimeout(() => {\n                                            uni.navigateTo({ url: '/pages/index/login' });\n                                        }, 1500);\n                                    }\n                                });\n                            }\n                        });\n                    }\n                }\n            });\n        }\n    }\n});\n//# sourceMappingURL=C:/Users/lj/Desktop/121/contract-front/111/pages/index/wode.uvue?vue&type=script&lang.uts.js.map","references":[],"uniExtApis":["uni.showModal","uni.showToast","uni.clearStorageSync","uni.navigateTo"],"map":"{\"version\":3,\"file\":\"wode.uvue?vue&type=script&lang.uts.js\",\"sourceRoot\":\"\",\"sources\":[\"wode.uvue?vue&type=script&lang.uts\"],\"names\":[],\"mappings\":\";AACC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAC,cAAkB;AAC1C,+BAAe;IACd,IAAI;QACF,OAAO;YACN,MAAM,EAAC,EAAE;YACT,QAAQ,EAAC,EAAE;YACX,OAAO,EAAC,EAAE;YACV,iBAAiB,EAAC,KAAK;SACvB,CAAA;IACH,CAAC;IACD,OAAO;QACN,OAAO,EAAE,CAAC;QACV,IAAI,CAAC,MAAM,GAAG,MAAM,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